title: basename with spaces in a bash script?
body: <p>I'm working on a bash script to create a new folder in /tmp/ using the name of a file, and then copy the file inside that folder.</p>
  
  <pre><code>#!/bin/bash
  
  MYBASENAME="`basename $1`"
  mkdir "/tmp/$MYBASENAME"
  
  for ARG in "$@"
      do
          mv "$ARG" "/tmp/$MYBASENAME"
  
  done
  </code></pre>
  
  <p>Behavior:</p>
  
  <p>When I type in <code>mymove "/home/me/downloads/my new file.zip"</code> it shows this:</p>
  
  <pre><code>mkdir /tmp/my
  new
  file.zip
  mv: rename /home/me/downloads/my new file.zip to /tmp/my\nnew\nfile.zip:
  </code></pre>
  
  <p>I have lots of quotes around everything, so I don't understand why this is not working as expected.</p>
  
  <p>Also, I have the form loop in there in case there are multiple files. I want them all to be copied to the same folder, based on the first argument's basename.</p>