[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp and mv commands (copying/moving only if file does not exist, reg
Re: cp and mv commands (copying/moving only if file does not exist, regardless of the time stamps, for use in a automatic script)
Thu, 27 Mar 2008 20:54:04 -0600
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/20080213 Thunderbird/184.108.40.206 Mnenhy/0.7.5.666
-----BEGIN PGP SIGNED MESSAGE-----
According to Darren DeHaven on 3/27/2008 3:33 PM:
| I need the deprecated mv and cp command parameter "--reply=" to stay.
But since bash does not implement mv or cp, you've complained to the wrong
list. This decision has been rehashed a number of times on the
bug-coreutils list, you may want to search the archives for more rationale
why the change was made (hint: the --reply options did not always work
intuitively - they only took effect IF the command was going to prompt in
the first place, and the POSIX rules for when to prompt are pretty hairy).
~ At any rate, I suggest looking into rsync, which can do exactly what you
want and more.
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----