[PATCH 0/3] add [ as alias for test, fix 0/1 argument handling
Rasmus Villemoes
ravi at prevas.dk
Wed Mar 11 13:09:07 CET 2026
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.
Rasmus Villemoes (3):
cmd: test: allow using [ as alias for 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 +++++++++++++++++++++++--
test/hush/if.c | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 89 insertions(+), 2 deletions(-)
--
2.53.0
More information about the U-Boot
mailing list