1
0
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:
Pádraig Brady
2023-12-17 14:35:36 +00:00
parent da091b3ab3
commit 63e9f1ae61
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -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
+2 -2
View File
@@ -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\