diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testscript.cli | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli index 754a24a..9423ca3 100644 --- a/doc/testscript.cli +++ b/doc/testscript.cli @@ -2276,6 +2276,28 @@ working directory unless the \c{-f} option is specified. is outside the script working directory.|| +\h#builtins-test|\c{test}| + +\ +test -f|-d <path> +\ + +Test the specified \i{path} according to one of the following options. Succeed +(0 exit code) if the test passes and fail (non-0 exit code) otherwise. + +\dl| + +\li|\n\c{-f} + + Path exists and is to a regular file.| + +\li|\n\c{-d} + + Path exists and is to a directory.|| + +Note that all tests dereference symbolic links. + + \h#builtins-touch|\c{touch}| \ |