Skip to content

add [ as alias for test, fix 0/1 argument handling

Rasmus Villemoes u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v13 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cmd: test: allow using [ as alias for testcmd/test.c+19 -00 replies
2/4doc: test: document [ ] spelling of testdoc/usage/cmd/test.rst+4 -10 replies
3/4test: add tests for left-bracket alias for 'test' commandtest/hush/if.c+43 -00 replies
4/4cmd: test: fix handling of single-argument form of testcmd/test.c test/hush/if.c+39 -20 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchAnshul Dalal
SeriesT-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] add [ as alias for test, fix 0/1 argument handling

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/[email protected]/

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(-)
Signature · 1 line
2.53.0