From b9ff17f33c60c4086c7a655f853cc33670057d4e Mon Sep 17 00:00:00 2001 From: David Adam Date: Sun, 28 Dec 2014 19:03:26 +0800 Subject: [PATCH] test: note that the square bracket form is available As requested in https://github.com/fish-shell/fish-shell/issues/1850 --- doc_src/test.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc_src/test.txt b/doc_src/test.txt index 632e7901a..64a6f4710 100644 --- a/doc_src/test.txt +++ b/doc_src/test.txt @@ -3,12 +3,15 @@ \subsection test-synopsis Synopsis \fish{synopsis} test [EXPRESSION] +[ [EXPRESSION] ] \endfish \subsection test-description Description Tests the expression given and sets the exit status to 0 if true, and 1 if false. An expression is made up of one or more operators and their arguments. +The first form (`test`) is preferred. For compatibility with other shells, the second form is available: a matching pair of square brackets (`[ [EXPRESSION ] ]`). + The following operators are available to examine files and directories: - `-b FILE` returns true if `FILE` is a block device.