diff options
| author | Tom Rini <[email protected]> | 2026-03-25 14:38:02 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-25 14:38:02 -0600 |
| commit | 6701997e9ca2cab0c0e1cde96437ac1dabefdaa1 (patch) | |
| tree | 66be5429de16b766e7eef0132b498e71bbfcfd27 /doc | |
| parent | 1e2052f76e98ae70ab29113d271bb376ed23e8bb (diff) | |
| parent | 8b0619579b2282050e7fb0d92fbc645b79d18bae (diff) | |
Merge patch series "add [ as alias for test, fix 0/1 argument handling"
Rasmus Villemoes <[email protected]> says:
Make 'test' behave a little more like its cousins in other shells, by
allowing the [ ... ] spelling, and while here, fix up the handling of
a single, non-empty argument to comply with POSIX.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/usage/cmd/test.rst | 5 |
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 ~~~~~~~ |
