From 4564a26c0b88d684c12c396d7ef5b0e66f686964 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 13 Oct 2021 20:05:27 +0300 Subject: Add --cwd|-t option to env pseudo-builtin --- doc/testscript.cli | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'doc') 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 ] [-u ]... [-] [=]... -- +env [-t ] [-c ] [-u ]... [-] [=]... -- \ + \ -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 } + + Change the command's working directory.| + \li|\n\c{-u|--unset } Remove the specified variable from the environment.|| -- cgit v1.1