mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-07 09:11:11 +02:00
doc: cp --no-clobber: improve documentation
* doc/coreutils.texi (cp invocation): Reference the related --update option, like we had already done in mv invocation. * src/cp.c (usage): State clearly what --no-clobber does, indicating it's protection focused, rather than being update focused.
This commit is contained in:
@@ -9057,6 +9057,8 @@ Do not overwrite an existing file; silently fail instead.
|
||||
This option overrides a previous
|
||||
@option{-i} option. This option is mutually exclusive with @option{-b} or
|
||||
@option{--backup} option.
|
||||
See also the @option{--update=none} option which will
|
||||
skip existing files but not fail.
|
||||
|
||||
@item -P
|
||||
@itemx --no-dereference
|
||||
|
||||
@@ -192,8 +192,8 @@ Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n\
|
||||
-L, --dereference always follow symbolic links in SOURCE\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
-n, --no-clobber do not overwrite an existing file (overrides a\n\
|
||||
-u or previous -i option). See also --update\n\
|
||||
-n, --no-clobber ensure no existing files overwritten, and fail\n\
|
||||
silently instead. See also --update\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
-P, --no-dereference never follow symbolic links in SOURCE\n\
|
||||
|
||||
Reference in New Issue
Block a user