I noticed the following behavour in mv by accident today:

$ ls
file1 file2

$ mv file*
$ ls
file2


Here mv behaves as though I had issued 'mv file1 file2' (which was not my
intention, I just accidentally pressed enter before supplying a
destination), but I think a safer and more intuitive way would be that
when wildcards are used, mv would treat the file* expression as single
source argument and tell the user to provide a destination.

Similar unexpected behaviour occurs if there are 3 or more matches and the
last one is a directory.

/Henrik Sankala ([EMAIL PROTECTED])





_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to