[PATCH v2 0/4] add [ as alias for test, fix 0/1 argument handling
Anshul Dalal
anshuld at ti.com
Fri Mar 13 07:24:45 CET 2026
On Thu Mar 12, 2026 at 3:31 PM IST, Rasmus Villemoes wrote:
> 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.
>
> v2: update documentation, add a few more test cases.
>
> CI is happy: https://github.com/u-boot/u-boot/pull/905
>
> v1: https://lore.kernel.org/u-boot/20260311120910.3934114-1-ravi@prevas.dk/
Tested-by: Anshul Dalal <anshuld at ti.com>
>
> Rasmus Villemoes (4):
> cmd: test: allow using [ as alias for test
> doc: test: document [ ] spelling of test
> test: add tests for left-bracket alias for 'test' command
> cmd: test: fix handling of single-argument form of test
>
> cmd/test.c | 30 +++++++++++++++--
> doc/usage/cmd/test.rst | 5 ++-
> test/hush/if.c | 73 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 105 insertions(+), 3 deletions(-)
More information about the U-Boot
mailing list