Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Recent parser changes
- X-seq: zsh-workers 27215
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Recent parser changes
- Date: Fri, 14 Aug 2009 15:54:36 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=PKuN2Q3LdVsiXzUFR2yT9znDh9rwudCsuveoWQgfs5U=; b=aQaRRW0vT08gLjpexlLOwwsEP12E4i0b/mrFNYSmY20deM7ZknWQSHCprUUES78LO/ wLKReG5dHYGz9t0BT+BA/WFpu9whjx9QeRKa70RH4BzayvSKShIqpHpmpDIPB4PfYy0K X497t3i4IFVs9D31uTTrxPwSYeAGcFU1xmoeQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=g1IRbn+8N8MPV0PPN+MIOhr1wfTLD7wJoIs3C2wuoXQinCAyye2vq+tmp1y7etKgRq hzYtK1+zkypV4LoNP76vv2is5/0V1HhZuA0pyZGWkJuLLPg90oPcmecgQwUN9J86jz4B jvhoB2ORix9sYVXLIc66G+cGAu6nch4wAZrcM=
- In-reply-to: <20a807210908140642q49893fe3w5737044dca63bb88@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20a807210908140642q49893fe3w5737044dca63bb88@xxxxxxxxxxxxxx>
2009/8/14 Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>:
> Greetings -
>
> On my Windows XP/cygwin 1.7 box, one of my scripts recently stopped
> working with the following message:
>
> MakeNativeXEmacs:136: parse error near '\n'
>
> The line number identified is the last line in the file, so the parser
> is running off the end of the file.
>
> Apparently, the offending line in the script is:
>
> if [[ -n $package_dir ]] && perl -pi -e
> "s@^#XXX=.*@XXX=$package_dir@" config.inc
>
> Commenting out that line solved my problem. After staring at that
> line for awhile, I realized that the "if ... &&" construct was at
> least non-standard, if not an outright syntax error; removing the "if"
> solved the parse error.
>
> Peter - if memory serves, you made some parser changes recently and I
> just wanted to document this behavioral change.
The subject line was "zsh bug in . builtin" and the commit message was
Author: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon Jul 6 20:44:28 2009 +0000
27092: missing then-clause for if wasn't an error
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author