Re: Question about testing with variable operators

2011-06-12 Thread Chet Ramey
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 ex

Re: Question about testing with variable operators

2011-06-10 Thread Jan Schampera
Andreas Schwab wrote: "Steven W. Orr" writes: 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? [[ is a reserved word like if, which triggers special parsing r

Re: Question about testing with variable operators

2011-06-10 Thread Andreas Schwab
"Steven W. Orr" writes: > 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? [[ is a reserved word like if, which triggers special parsing rules, so you cannot