public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/4] add [ as alias for test, fix 0/1 argument handling
@ 2026-03-12 10:01 Rasmus Villemoes
  2026-03-12 10:01 ` [PATCH v2 1/4] cmd: test: allow using [ as alias for test Rasmus Villemoes
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Rasmus Villemoes @ 2026-03-12 10:01 UTC (permalink / raw)
  To: u-boot; +Cc: Tom Rini, Quentin Schulz, Rasmus Villemoes

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/

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(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-27 19:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 10:01 [PATCH v2 0/4] add [ as alias for test, fix 0/1 argument handling Rasmus Villemoes
2026-03-12 10:01 ` [PATCH v2 1/4] cmd: test: allow using [ as alias for test Rasmus Villemoes
2026-03-12 10:01 ` [PATCH v2 2/4] doc: test: document [ ] spelling of test Rasmus Villemoes
2026-03-12 10:01 ` [PATCH v2 3/4] test: add tests for left-bracket alias for 'test' command Rasmus Villemoes
2026-03-12 10:01 ` [PATCH v2 4/4] cmd: test: fix handling of single-argument form of test Rasmus Villemoes
2026-03-13  6:24 ` [PATCH v2 0/4] add [ as alias for test, fix 0/1 argument handling Anshul Dalal
2026-03-25 23:05 ` Tom Rini
2026-03-27 15:48   ` Franz Schnyder
2026-03-27 19:38     ` Rasmus Villemoes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox