Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: (very) bad syntax error checking
- X-seq: zsh-workers 11600
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: (very) bad syntax error checking
- Date: Fri, 26 May 2000 15:24:25 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
It's rather late in the day to come across problems like this.
% cat test.zsh
if true; # then missing
print hello
fi
print This line should not be executed.
% zsh -f ./test.zsh
./test.zsh:3: parse error near `fi'
This line should not be executed.
Yuk. This is the way people accidentally delete all the files on their
disks, etc. I can't believe this has always been there --- I suspect it
must be part of the parsing changes that we've somehow all missed. I won't
be releasing anything until this gets fixed. If it's a lot of code to fix
(I would guess it's just an errflag test or two) I'll hold off for another
week.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author