]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp/mv: add --no-clobber (-n) option to not overwrite target
authorKamil Dudka <kdudka@redhat.com>
Tue, 13 Jan 2009 17:35:00 +0000 (18:35 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 14 Jan 2009 08:09:22 +0000 (09:09 +0100)
commitd01338eb3d30e5634f1b4d4179c229f54eea0b44
tree6ed873717bb12faed3300b9be390aaabee40fa74
parenta99c35b04d9ab601e4fa98319c56fbdbde6b420a
cp/mv: add --no-clobber (-n) option to not overwrite target

* src/cp.c (usage): Show new option -n in --help.
(main): Handle new option -n.
* src/mv.c (usage): Show new option -n in --help.
(main): Handle new option -n.
* doc/coreutils.texi: Document new cp/mv option -n.
* tests/cp/cp-i: Add tests for -f, -i and -n options.
* tests/mv/mv-n: New test for mv -n.
* tests/Makefile.am: Add test mv/mv-n to the list.
* NEWS: Mention the change.
NEWS
doc/coreutils.texi
src/cp.c
src/mv.c
tests/Makefile.am
tests/cp/cp-i
tests/mv/mv-n [new file with mode: 0755]