diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-18 00:33:28 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-19 16:13:40 +0300 |
commit | 5d6ce25142dd4624f785ebf2ffe4cc2afb8d49e0 (patch) | |
tree | 47769c7b671d0b93a0ae96c103944da3fcdb62b6 /doc | |
parent | 91e6f8b321fb470cfffa578dcd7f24669186604f (diff) |
Add support for cp builtin -p option
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testscript.cli | 14 |
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. |