From 1d410b9f31846958e010df22105eb6b64f4db984 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 16 Jan 2017 17:35:18 +0200 Subject: Specify the test builtin in testscript doc --- doc/testscript.cli | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doc') 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 +\ + +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}| \ -- cgit v1.1