tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: cp -n diff
On Tue, 3 May 2011, Zafer Aydo?an wrote:
> attached is a patch that implements the -n option for cp, which skips existing
> files on the target.
> This is useful if you want copy two directories and want only the
> non-existing/new files to be be copied.
> This has also been implemented in FreeBSD as cp -n, in Linux its named
> -u for update.
> I have followed the FreeBSD implementation.
> The patch is easy and straightforward. It is against current.
> I would like to commit it.
> Please have a look.
>
> Any comments ?
Well, you kicked the hornets nest there!
but in truth though, I do agree.. that this functionality belongs in rsync
or a backup or archive tool, not a copy tool..
(unless of course, you can get it included in the POSIX specification :)
iain
Home |
Main Index |
Thread Index |
Old Index