Re: Question about testing with variable operators
From:
Andreas Schwab
Subject:
Re: Question about testing with variable operators
Date:
Fri, 10 Jun 2011 18:56:46 +0200
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
"Steven W. Orr" <steveo@syslang.net> 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 use it like this.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."