[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extension of file-test primitives?

From: dethrophes
Subject: Re: extension of file-test primitives?
Date: Wed, 23 Aug 2017 17:13:29 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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

[Prev in Thread] Current Thread [Next in Thread]