bug-coreutils
[Top][All Lists]
Advanced

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

Re: exclude option for cp


From: Eric Blake
Subject: Re: exclude option for cp
Date: Sun, 24 Jun 2007 07:58:16 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.5.666

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

According to Francky Leyn on 6/24/2007 2:29 AM:
> I know I can do this
> with find, but it would be much more convenient if cp
> would have an option to exclude files from copying.

That's the key to it all.  The Unix philosophy is that each utility should
do one thing, and do it well.  There is no need to bloat cp with something
that find can do, when find already does it better.  You have to prove
that there is something that cannot be done in any other way than cp,
before it is worth adding it to cp.

> Suppose this option would be triggered with -e or --exclude
> I then would be able to specify the copy as:
> cp -rvf -e '*~' -e .scratch
> 
> What about the idea?
> 
> Is someone willing to implement this?

If you submit a patch, it will be reviewed.  But the bar for adding new
features to cp is very high, and no one else will write it for you.

- --
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

iD8DBQFGfnh484KuGfSFAYARAqQ7AKDREhCWGSp2wDyRYuxMNFxg3PE2jgCfVUmU
1J/35mBIa0O+cCpa0VKTAPo=
=ATDP
-----END PGP SIGNATURE-----




reply via email to

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