bug-coreutils
[Top][All Lists]
Advanced

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

Re: mv doesn't respect --reply=no


From: Eric Blake
Subject: Re: mv doesn't respect --reply=no
Date: Tue, 20 Oct 2009 18:55:38 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Halas, Miroslav on 10/20/2009 3:54 PM:
> This bus was encountered as part of mv.exe from coreutils 5.3.0 from
> gnuwin project

Severely old.  The latest version is 8.0.  I'd recommend upgrading to
something a little more maintained, such as the cygwin port of coreutils.

> mv --v --reply=no a.txt Z:\
> 
> always overwrites Z:\a.txt if present.

Not a bug, but admittedly confusing.

> My understanding is that
> --reply=no
> should mean answer no to question about overwriting the file. 

No, --reply=no means to answer no IF THE QUESTION WOULD HAVE BEEN ASKED.
But since POSIX requires mv to overwrite writable files without asking,
depending on the situation (and your situation was one of them), there was
no question ever asked for --reply=no to respond to.

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#cp-and-mv-the-reply-option-is-deprecated

And your confusion in this matter is why newer versions of mv have
altogether removed --reply.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkreXAoACgkQ84KuGfSFAYBnKQCg1GTr+Tsu7EVmDr0mNC/S1L/Y
nZMAn2wX2Cxkq3Q6oUEm5uxhx5tsrhsk
=3icw
-----END PGP SIGNATURE-----




reply via email to

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