On 6/10/11 11:44 AM, Steven W. Orr wrote:

> As a work around, I can use eval or the builtin test, but my question is
> this: Is this a bug or is there a reason that it should work for arithmetic
> but not for the test [[ operator?

It's not a bug.  The (( command is syntactic sugar: (( ...)) is exactly
the same as let "...", with the expansions and evaluation ordering that
implies.

The [[ compound command is part of the shell language, and the operators
must be available to the parser when the command is read.

Chet

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

Reply via email to