Re: [dev] [stali] What happened to stali?

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Wed, 15 Oct 2014 13:24:26 -0700

After looking at the sbase TODO I threw together test(1). As far as I
can tell it's POSIX compliant. I used the POSIX description[0] to
write it. It exits 0 for true, 1 for false, and 2 for bad input. Let
me know what's good and what's bad. I'll work on addresing those
concerns and getting it into sbase format so I can submit a patch.

It specifically doesn't support parentheses and the -o and -a flags as
1) they are obsolete xsi extensions[1]
2) boolean operators are and should be handled by the shell. e.g. [
foo = bar ] || [ 4 -lt 5 ]

-emg

[0] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
[1] http://pubs.opengroup.org/onlinepubs/9699919799/help/codes.html#OB XSI

Received on Wed Oct 15 2014 - 22:24:26 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 15 2014 - 22:36:07 CEST