Add a "-n" option to cp (opposite of "-f")
Bug #229182 reported by
Philipp Kohlbecher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: coreutils
Here's a wishlist item:
The BSD version of cp(1) has a "-n" command line option (cf. http://
This is a pretty nice thing to have if you want to copy a bunch of files from A to B without replacing any of the files in B (regardless of their modification time). With this version of cp(1), you have to do something like "yes no | cp -i A/* B/*", which is unnecessarily complicated. cp(1) has the "-f" switch and the "-i" switch, it should have the corresponding "-n" switch.
Thanks for considering!
To post a comment you must log in.
I think it could be useful, did anybody propose this to coreutils upstream?