[PATCH v2 2/4] doc: test: document [ ] spelling of test
Rasmus Villemoes
ravi at prevas.dk
Thu Mar 12 11:01:04 CET 2026
Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
---
doc/usage/cmd/test.rst | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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
~~~~~~~
--
2.53.0
More information about the U-Boot
mailing list