bug-coreutils
[Top][All Lists]
Advanced

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

Re: what will happen to the --reply option?


From: Eric Blake
Subject: Re: what will happen to the --reply option?
Date: Sat, 25 Aug 2007 22:15:36 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

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

According to alessandro salvatori on 8/25/2007 9:58 PM:
> Hello,
> 
>   some scripts I wrote time ago are now displaying a lot of lines like this
> one:
> 
> cp: the --reply option is deprecated; use -i or -f instead
> 
> which is fairly annoying...

We deprecated --reply because too many people did not understand how it
would work - it does not prevent overwriting files, rather, it only
answers no _if a prompt would have been issued_.  This issue has come up
several times; you can search the mail archives for more details.

> 
> On top of that the only way for me to get the desired behaviour of skipping
> existing files seems to be:
> 
> yes | tr 'y' 'n' | cp -iR source/ destination/ 2>/dev/null

"yes | tr 'y' 'n'" is overkill, why not just use "yes n"?

> 
> which would then conceal any kind of error message (again, annoying)...

Why not use "rsync --ignore-existing" instead?

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

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

iD8DBQFG0P5o84KuGfSFAYARAhjEAJ4/A1l8P8mbSMWCwY+1eww/gMXs2wCeOif1
MvN8HodzhSiBvAkt5u1MAhk=
=z/lw
-----END PGP SIGNATURE-----




reply via email to

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