"mv * newdir" creates newdir/newdir and copies files twice.
Recursion stops after one level (thankfully) and only the
files, not subdirectories are copied into newdir/newdir.
This only happens if there are other subdirectories that are
being moved; for example, in the following script, there is
no problem if the subdirectory "dir" is not present.
[test] > file1
[test] mkdir dir newdir
[test] mv * newdir
mv: newdir/newdir/dir: won't create hard link `newdir/dir'
to directory `(null)'
[test] ls -R
dir file1 newdir
I'm changing component to fileutils.
Should be fixed in the latest fileutils in Raw Hide.