Re: [bug] coreutils 5.2.1 - incorrect behaviour for mv --reply=no
Wilber [EMAIL PROTECTED] wrote: When using the option --reply=no for mv, it still overwrites the file when it is not supposed to. Here is a quick demo: [EMAIL PROTECTED] ~]# mkdir mvtest [EMAIL PROTECTED] ~]# cd mvtest/ [EMAIL PROTECTED] mvtest]# mkdir moveto [EMAIL PROTECTED] mvtest]# echo test file.ext [EMAIL PROTECTED] mvtest]# touch moveto/file.ext [EMAIL PROTECTED] mvtest]# ls file.ext moveto [EMAIL PROTECTED] mvtest]# mv --reply=no -v file.ext moveto/ `file.ext' - `moveto/file.ext' [EMAIL PROTECTED] mvtest]# ls moveto [EMAIL PROTECTED] mvtest]# This is wrong as the destination file should not be overwritten when using --reply=no Thanks for the report. However, you are misunderstanding the admittedly unclear description of --reply=no. That is why the --reply=... option is being deprecated and will be removed in an upcoming release. With --reply=no, mv declines to do the move operation only in those unusual cases (i.e., read-only target) in which it would have prompted you. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils
[bug] coreutils 5.2.1 - incorrect behaviour for mv --reply=no
When using the option --reply=no for mv, it still overwrites the file when it is not supposed to. Here is a quick demo: [EMAIL PROTECTED] ~]# mkdir mvtest [EMAIL PROTECTED] ~]# cd mvtest/ [EMAIL PROTECTED] mvtest]# mkdir moveto [EMAIL PROTECTED] mvtest]# echo test file.ext [EMAIL PROTECTED] mvtest]# touch moveto/file.ext [EMAIL PROTECTED] mvtest]# ls file.ext moveto [EMAIL PROTECTED] mvtest]# mv --reply=no -v file.ext moveto/ `file.ext' - `moveto/file.ext' [EMAIL PROTECTED] mvtest]# ls moveto [EMAIL PROTECTED] mvtest]# This is wrong as the destination file should not be overwritten when using --reply=no Oher relevant information: [EMAIL PROTECTED] ~]# 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. [EMAIL PROTECTED] ~]# rpm --query coreutils coreutils-5.2.1-31.7 [EMAIL PROTECTED] ~]# rpm --query glibc glibc-2.3.4-2.39 [EMAIL PROTECTED] ~]# 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 [EMAIL PROTECTED] ~]# ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils