aboutsummaryrefslogtreecommitdiff
path: root/doc/testscript.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-16 17:35:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-16 17:35:18 +0200
commit1d410b9f31846958e010df22105eb6b64f4db984 (patch)
tree6d4d9d4238c5807480435aa3f7f9425f6f7a04fb /doc/testscript.cli
parentfa40ad5ebd952cb1b76465e966d00908148878c0 (diff)
Specify the test builtin in testscript doc
Diffstat (limited to 'doc/testscript.cli')
-rw-r--r--doc/testscript.cli22
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}|
\