[Toybox] [PATCH] Fill out test(1)
Felix Janda
felix.janda at posteo.de
Fri Jul 19 06:16:24 PDT 2013
Hello,
attached is a patch filling out part of Rob's test(1) template and
adding some test cases.
Everything but the obsolete XSI optional combination of tests with -a
and -o is (hopefully) implemented. The SUSV4 TC1 (and not they alone)
advises people to use the shell's && and || instead. Are many shell
scripts in the wild using these options? Should they be implemented,
it looks like some code could be shared with find.
Maybe it would be better to use a goto for the error handling in test.c.
Felix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.patch
Type: text/x-patch
Size: 4940 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130719/5d3ccbfe/attachment-0006.bin>
More information about the Toybox
mailing list