bug-bash
[Top][All Lists]
Advanced

[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


From: Eric Blake
Subject: Re: cp and mv commands (copying/moving only if file does not exist, regardless of the time stamps, for use in a automatic script)
Date: Thu, 27 Mar 2008 20:54:04 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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

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

iEYEARECAAYFAkfsXcwACgkQ84KuGfSFAYCLQwCfXn9qxfKBB/oaWSCi/QHoSwsT
zZkAoKtKg2M0yvY76tw5289zDqakwwP/
=SCfx
-----END PGP SIGNATURE-----




reply via email to

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