aboutsummaryrefslogtreecommitdiff
path: root/doc/testscript.cli
diff options
context:
space:
mode:
Diffstat (limited to 'doc/testscript.cli')
-rw-r--r--doc/testscript.cli14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 666d553..353850a 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -2241,10 +2241,10 @@ Read files in order and write their contents to \c{stdout}. Read from
\h#builtins-cp|\c{cp}|
\
-cp [--no-cleanup] <src-file> <dst-file>
-cp [--no-cleanup] -R|-r <src-dir> <dst-dir>
-cp [--no-cleanup] <src-file>... <dst-dir>/
-cp [--no-cleanup] -R|-r <src-path>... <dst-dir>/
+cp [-p] [--no-cleanup] <src-file> <dst-file>
+cp [-p] [--no-cleanup] -R|-r <src-dir> <dst-dir>
+cp [-p] [--no-cleanup] <src-file>... <dst-dir>/
+cp [-p] [--no-cleanup] -R|-r <src-path>... <dst-dir>/
\
Copy files and/or directories. The first two forms make a copy of a single
@@ -2304,6 +2304,12 @@ files/directories does not exist or if the \i{dst-dir} filesystem entry does
not exist or is not a directory. For a \i{src-path} directory \c{cp} also fails
if the \i{dst-dir/src-name} filesystem entry already exists.
+\dl|
+
+\li|\n\c{-p}
+
+ Copy permissions as well as modification and access times.||
+
Unless the --no-cleanup option is specified, newly created files and
directories that are inside the script working directory are automatically
registered for cleanup.