Raphael Mankin raph@panache.demon.co.uk writes:
On 15-Jun-03 Richard Kettlewell wrote:
# mv .* ../ # if there are any dotfiles in /usr, which is unlikely
^^^
A slight oops! here. Better is to write mv .??* .. otherwise you may find that you are trying to move . and .. as well, particularly if you are root. I still wear the scars of this one, even after 20 years messing with Unix.
You get an error message from it, but it still does the right thing in practice.
mydir$ ls -a . .. .a .b .c mydir$ mv .* .. mv: cannot overwrite directory `../.' mv: cannot overwrite directory `../..' mydir$ ls -a . .. mydir$