]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
doc: test: document [ ] spelling of test
authorRasmus Villemoes <ravi@prevas.dk>
Thu, 12 Mar 2026 10:01:04 +0000 (11:01 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 25 Mar 2026 20:37:55 +0000 (14:37 -0600)
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Tested-by: Anshul Dalal <anshuld@ti.com>
doc/usage/cmd/test.rst

index d1379117fcaf9044431401a4f0cea0818252044d..037a9ee17745f05f108486708aba12640211c5f6 100644 (file)
@@ -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
 ~~~~~~~