Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Recent parser changes
- X-seq: zsh-workers 27214
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Recent parser changes
- Date: Fri, 14 Aug 2009 09:42:18 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ktAQnz4Wia8FNAgiq8NlNkLIQIMuatJNC61wj2NT/+k=; b=VI9oeBcvHPD2XeQWs7Hlmowh79BFELn4Z675Rt7k2xPQg0xbPVRGVfylzL+ZsyXpj3 GINJSCBfekWQQVyBM0uJ4S2B50urIXjvDnpEu80khiv6YJkw3oc9KFJEGVg3v17fpxqQ rY3tcoVUlCVUjqOKutxc6rVOEyCoAxNlW8lqg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=Ff8TZXJ5zGoKkSb75K4W1XQSVJZOK3TkLhOshutNXjZpgf1iMn+sLG3D4Ai4Ppz1Qa H0Ld/NfcWTWeiVT32WyxKvxdAt6vbEmHbBwBoOALyeaDNWLKG23Fk6IXHITp/dPz7vqH ENGIrtTT+HMP7clHOCnV79/J87rlXknvlO0jU=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: ethersoft@xxxxxxxxx
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.
Regards,
Vin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author