bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mv --reply=no overwrites files


From: Christian Boltz
Subject: mv --reply=no overwrites files
Date: Sat, 2 Jul 2005 23:13:53 +0200
User-agent: KMail/1.8

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).

address@hidden:/tmp/test/mvtest> touch 1 2 3
address@hidden:/tmp/test/mvtest> ls
1  2  3
address@hidden:/tmp/test/mvtest> mv --reply=no 1 2
address@hidden:/tmp/test/mvtest> ls
2  3
address@hidden:/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):

address@hidden:~> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]