bug-coreutils
[Top][All Lists]
Advanced

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

[bug] coreutils 5.2.1 - incorrect behaviour for mv --reply=no


From: Wilber
Subject: [bug] coreutils 5.2.1 - incorrect behaviour for mv --reply=no
Date: Wed, 13 Feb 2008 15:50:35 +1100

When using the option --reply=no for mv, it still overwrites the file when it 
is not supposed to.

Here is a quick demo:
address@hidden ~]# mkdir mvtest
address@hidden ~]# cd mvtest/
address@hidden mvtest]# mkdir moveto
address@hidden mvtest]# echo test > file.ext
address@hidden mvtest]# touch moveto/file.ext
address@hidden mvtest]# ls
file.ext  moveto
address@hidden mvtest]# mv --reply=no -v file.ext moveto/
`file.ext' -> `moveto/file.ext'
address@hidden mvtest]# ls
moveto
address@hidden mvtest]# 

This is wrong as the destination file should not be overwritten when using 
--reply=no

Oher relevant information:
address@hidden ~]# mv --version
mv (coreutils) 5.2.1
Written by Mike Parker, David MacKenzie, and Jim Meyering.

Copyright (C) 2004 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.
address@hidden ~]# rpm --query coreutils
coreutils-5.2.1-31.7
address@hidden ~]# rpm --query glibc
glibc-2.3.4-2.39
address@hidden ~]# uname -a
Linux wilber.pointclark.net 2.6.18-8.1.14.3.cccustom #1 PREEMPT Sun Nov 4 
22:53:10 EST 2007 i686 i686 i386 GNU/Linux
address@hidden ~]# 




reply via email to

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