[Top][All Lists]

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

Re: Question about testing with variable operators

From: Jan Schampera
Subject: Re: Question about testing with variable operators
Date: Sat, 11 Jun 2011 08:44:01 +0200
User-agent: Mozilla-Thunderbird (X11/20100329)

Andreas Schwab wrote:
"Steven W. Orr" <address@hidden> 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.

However, it should work for the good ol' test command ([ ... ])

Be conservative in what you do, be liberal in what you accept from others.
- jbp, master of the net, in RFC793

reply via email to

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