Hello,

I just found a bug in mv: it overwrites files even when --reply=no is 
given (which should never overwrite existing files according to the 
documentation).

[EMAIL PROTECTED]:/tmp/test/mvtest> touch 1 2 3
[EMAIL PROTECTED]:/tmp/test/mvtest> ls
1  2  3
[EMAIL PROTECTED]:/tmp/test/mvtest> mv --reply=no 1 2
[EMAIL PROTECTED]:/tmp/test/mvtest> ls
2  3
[EMAIL PROTECTED]:/tmp/test/mvtest>

Oops, the file "2" was overwritten... :-(


BTW: --reply=query and --reply=yes work as expected.


I use the following version of mv (SuSE Linux 9.3):

[EMAIL PROTECTED]:~> LC_ALL=C mv --version
mv (GNU coreutils) 5.3.0
Written by Mike Parker, David MacKenzie, and Jim Meyering.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.


Regards,

Christian Boltz
-- 
Fontlinge developer
Fontlinge - font management for Linux / Schriftenverwaltung für Linux
Infos und Download: http://www.gesindel.de


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to