From: Mikael Magnusson <mikachu@gmail.com>
To: Vin Shelton <acs@alumni.princeton.edu>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: Recent parser changes
Date: Fri, 14 Aug 2009 15:54:36 +0200 [thread overview]
Message-ID: <237967ef0908140654w8f52e42p293ef75c1d2bebad@mail.gmail.com> (raw)
In-Reply-To: <20a807210908140642q49893fe3w5737044dca63bb88@mail.gmail.com>
2009/8/14 Vin Shelton <acs@alumni.princeton.edu>:
> 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@users.sourceforge.net>
Date: Mon Jul 6 20:44:28 2009 +0000
27092: missing then-clause for if wasn't an error
--
Mikael Magnusson
prev parent reply other threads:[~2009-08-14 13:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 13:42 Vin Shelton
2009-08-14 13:54 ` Mikael Magnusson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=237967ef0908140654w8f52e42p293ef75c1d2bebad@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=acs@alumni.princeton.edu \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).