doc: test: document [ ] spelling of test

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Tested-by: Anshul Dalal <anshuld@ti.com>
This commit is contained in:
Rasmus Villemoes
2026-03-12 11:01:04 +01:00
committed by Tom Rini
parent fc8bf9a984
commit d44f615829

View 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
~~~~~~~