[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reporting of "{x" non ideal
From: |
Paul Jarc |
Subject: |
Re: reporting of "{x" non ideal |
Date: |
Tue, 27 Nov 2001 16:47:08 -0500 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) |
Dan Jacobson <jidanni@deadspam.com> wrote:
> $ test a||{false;true;}&&echo $?
> bash: syntax error near unexpected token `&'
>
> no it's not, it's near "{",
I'd say it's *near* "||" and ";", and, more to the point, that it *is*
"{false". I don't know if that's how the tokenizer works, but
claiming that "{false" is a token, even if it's not, would probably be
the most useful error message.
paul