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: Halas, Miroslav
Subject: RE: mv doesn't respect --reply=no
Date: Wed, 21 Oct 2009 02:17:48 -0500

Hello Eric,

Thank you very much for your reply and recommendation. I have replaced
gnuwin32 with cygwin and mv.exe with rsync.exe and everything now works
as expected.

Thanks again,

Miro 


 

-----Original Message-----
From: Eric Blake [mailto:address@hidden 
Sent: Tuesday, October 20, 2009 7:56 PM
To: Halas, Miroslav
Cc: address@hidden
Subject: Re: mv doesn't respect --reply=no

-----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-t
he-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]