Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Strange parsing bug(?)
- X-seq: zsh-workers 25784
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Strange parsing bug(?)
- Date: Wed, 1 Oct 2008 02:56:39 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=NuivtLvbHGvkVtELhFVGuIE5TuDaIboVjciofJB23AY=; b=lUb4kBL+o31Y+bKSTg29LReFExDq45hLw9O/jnHS6OYOjOeMkOrEGg6KPm9+ZyTFgR +ibDGrs/wqLeXhF+DARiQizVv4p2Zl2O2lOnWHNm5b7sfbxqxYrmY7jLRtnY8bGZNq1O lUz65DHfRSm1G4YCnTDLgqMbF0QId+/WNQI5E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=q6FeOCqvRqJdLkbyJugZxGcUE7dP35X4aYHb+sipoOGrGdP7RDdQgQLd4cRq+MQtN1 u/MncmO68qvaOo3bJr4MZ1yB3JLVC86De6yDrPF1bAG6P9INxG0k0pj+80F7LiESq1H1 igISFf8f4ntkwgsyCiQh1XbBd6EdM6b7gn2Cs=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi all,
I have stumbled upon a really weird bug. Due to it being late & me
being ill, I thought I did something wrong, but I pruned a rather
long & complex part of my zshrc down do this:
echo "!"
The evil part is that a warning was part of a really deep & broad
boolean expression which made me assume I did something wrong
when the interactive parser failed to do what I wanted.
Frustrating when you find the actual cause after several hours :p
I suspect it's history access/modification gone awry because of
the exclamation mark and the fact that only interactive use is
affected, but I am not sure. Stuff in <brackets> are key presses,
the # is an 'inline' comment:
richih@roadwarrior ~ % zsh -f
roadwarrior% echo 'echo "!"' > temp
roadwarrior% source temp
!
roadwarrior% echo "!"
dquote> <Enter>
dquote> <CTRL-C>
roadwarrior% <UP>
roadwarrior% echo "
<CTRL-C> # there is a blank line, here. Cursor is at the left
roadwarrior% echo "!""
roadwarrior%
Of course, I might have stumbled onto a hidden feature, but if that
is the case, I would argue that this is extremely against the
expectation of most users.
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author