diff options
-rw-r--r-- | doc/coreutils.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 08ef2d8c8..954a1f8f4 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -7675,9 +7675,11 @@ combination of options is this tiny Bourne shell script: #!/bin/sh # Usage: backup FILE... # Create a @sc{gnu}-style backup of each listed FILE. +fail=0 for i; do - cp --backup --force -- "$i" "$i" + cp --backup --force --preserve=all -- "$i" "$i" || fail=1 done +exit $fail @end example @item --copy-contents |