aboutsummaryrefslogtreecommitdiff
path: root/doc/testscript.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-10-13 20:05:27 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-10-13 20:05:27 +0300
commit4564a26c0b88d684c12c396d7ef5b0e66f686964 (patch)
tree130e744bd182110184171fb38677f0fca60ec73f /doc/testscript.cli
parentb7997a0becbecd775694aa7f106afb3c0e777b8d (diff)
Add --cwd|-t option to env pseudo-builtin
Diffstat (limited to 'doc/testscript.cli')
-rw-r--r--doc/testscript.cli11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 4721a88..50f975d 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -2437,11 +2437,12 @@ with a newline.
\h#builtins-env|\c{env}|
\
-env [-t <sec>] [-u <name>]... [-] [<name>=<value>]... -- <cmd>
+env [-t <sec>] [-c <dir>] [-u <name>]... [-] [<name>=<value>]... -- \
+ <cmd>
\
-Run a command limiting its execution time and/or adding/removing the variables
-to/from the environment.
+Run a command limiting its execution time, changing its working directory,
+and/or adding/removing the variables to/from the environment.
Note that \c{env} is a \i{pseudo-builtin}. In particular, its name and the
\c{--} separator must be specified \i{literally} on the command line.
@@ -2463,6 +2464,10 @@ env - --unset=FOO -- $*
Terminate the command if it fails to complete within the specified number
of seconds. See also the \l{#builtins-timeout \c{timeout}} builtin.|
+\li|\n\c{-c|--cwd <dir>}
+
+ Change the command's working directory.|
+
\li|\n\c{-u|--unset <name>}
Remove the specified variable from the environment.||