-----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 [EMAIL PROTECTED] -----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----- _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils