Yhea I just learned that now, it's been at least a decade since I looked at the posix spec on test.

Should probably update the bash help to reflect that

as help bash (in my version at least) only says

      EXPR1 -a EXPR2 True if both expr1 AND expr2 are true.
      EXPR1 -o EXPR2 True if either expr1 OR expr2 is true.

The main oses I work on are XSI conform.


Am 23.08.2017 um 17:00 schrieb Chet Ramey:
On 8/23/17 10:49 AM, dethrophes wrote:
Well technically I don't *have* to accept the performance penalty.

As I can just use the posix comform syntax, which is quicker.
Wait, which posix-conforming syntax? Because your original example, which
had five arguments to `test', is explicitly unspecified:

4 arguments:
     The results are unspecified.

unless you're on an XSI-conformant system.



Reply via email to