From 5d6ce25142dd4624f785ebf2ffe4cc2afb8d49e0 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 18 Mar 2018 00:33:28 +0300 Subject: Add support for cp builtin -p option --- doc/testscript.cli | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'doc') 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] -cp [--no-cleanup] -R|-r -cp [--no-cleanup] ... / -cp [--no-cleanup] -R|-r ... / +cp [-p] [--no-cleanup] +cp [-p] [--no-cleanup] -R|-r +cp [-p] [--no-cleanup] ... / +cp [-p] [--no-cleanup] -R|-r ... / \ 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. -- cgit v1.1