[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp -iu always prompts
From: |
Eric Blake |
Subject: |
Re: cp -iu always prompts |
Date: |
Wed, 27 Dec 2006 21:19:13 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Becker, Paul on 12/27/2006 12:23 PM:
> Currently, "cp -ui" always prompts the user, even if nothing
>
> is going to be attempted to be copied. I would expect to only be
>
> prompted if the file is going to be copied. I don't think the user
>
> should be prompted for every single file even if it is not going
>
> to be copied anyway.
Indeed, without the -u, this behavior of cp -i is required by POSIX. But
since -u is a GNU extension, you are correct that it may be worth changing
the behavior in this area to suppress the -i prompt if -u determines the
dates imply no copy is needed. Now all that is needed is for someone with
enough time to write a patch.
- --
Life is short - so eat dessert first!
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
iD8DBQFFk0XB84KuGfSFAYARAtyyAJsHPFUiZho7HeC23peMpWpICzdIHQCgpKRe
QT1GfOX/Cs6iq/zEdIQs2EM=
=bnr3
-----END PGP SIGNATURE-----