mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] commands/test: some improvements
@ 2020-01-28 13:07 Uwe Kleine-König
  2020-01-28 13:07 ` [PATCH 1/3] commands/test: Bail out on incomplete command line options Uwe Kleine-König
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2020-01-28 13:07 UTC (permalink / raw)
  To: barebox

Hello,

my main intention was to implement -b and -c, the other two patches just
fix some stuff I noticed while doing so.

One thing I noticed is that the check for

	strlen(ap[1])

in the handling of -e and others is wrong.

This makes

	test -e ''

return success, but

	test -z something -o -e ''

fails. I don't know for sure how to fix this as the empty string might
mean "." sometimes?

Best regards
Uwe

Uwe Kleine-König (3):
  commands/test: Bail out on incomplete command line options
  commands/test: Improve option parsing to handle "]" less special
  commands/test: Implement -b and -c to test for character and block
    devices

 commands/test.c | 32 +++++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)

-- 
2.24.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2020-02-04  7:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-28 13:07 [PATCH 0/3] commands/test: some improvements Uwe Kleine-König
2020-01-28 13:07 ` [PATCH 1/3] commands/test: Bail out on incomplete command line options Uwe Kleine-König
2020-02-03  7:57   ` Sascha Hauer
2020-02-03  8:50     ` Uwe Kleine-König
2020-01-28 13:08 ` [PATCH 2/3] commands/test: Improve option parsing to handle "]" less special Uwe Kleine-König
2020-01-28 13:08 ` [PATCH 3/3] commands/test: Implement -b and -c to test for character and block devices Uwe Kleine-König
2020-02-04  7:40 ` [PATCH 0/3] commands/test: some improvements Sascha Hauer

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