summaryrefslogtreecommitdiff
path: root/doc/usage/cmd
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2026-03-12 11:01:04 +0100
committerTom Rini <[email protected]>2026-03-25 14:37:55 -0600
commitd44f61582947564991cce7501f2e5db0b29ebad6 (patch)
tree8b4f90c8ae5431fa108e08f3ca3525e6ea1586a3 /doc/usage/cmd
parentfc8bf9a984c118d551b3f93c66f1ae2733b9b588 (diff)
doc: test: document [ ] spelling of test
Signed-off-by: Rasmus Villemoes <[email protected]> Tested-by: Anshul Dalal <[email protected]>
Diffstat (limited to 'doc/usage/cmd')
-rw-r--r--doc/usage/cmd/test.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/usage/cmd/test.rst b/doc/usage/cmd/test.rst
index d1379117fca..037a9ee1774 100644
--- a/doc/usage/cmd/test.rst
+++ b/doc/usage/cmd/test.rst
@@ -20,11 +20,14 @@ Synopsis
test -e <interface> <dev[:part]> <path>
test <s> =~ <re>
+ [ <test expression> ]
+
Description
-----------
The ``test`` command is similar to the ordinary shell built-in by the
-same name. Unlike in ordinary shells, it cannot be spelled ``[``.
+same name. Like in ordinary shells, it can also be spelled ``[``,
+provided the test expression is followed by a separate ``]`` argument.
Strings
~~~~~~~