[Top][All Lists]

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

Re: extension of file-test primitives?

From: Chet Ramey
Subject: Re: extension of file-test primitives?
Date: Thu, 24 Aug 2017 15:41:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 8/23/17 3:57 PM, Eric Blake wrote:

>>>       EXPR1 -a EXPR2 True if both expr1 AND expr2 are true.
>>>       EXPR1 -o EXPR2 True if either expr1 OR expr2 is true.
>> Why update the help documentation? Bash supports it. It's just deprecated
>> in the posix standard.
> Not just deprecated, but inherently ambiguous.  

And that's why it's deprecated. However, working code will continue to
work, and new code that is (unwisely) written to use more than four
arguments will work in the unambiguous situations. And we'll continue
to recommend that people stick to conditional expressions with four
arguments or fewer and combine them using and/or lists.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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