zsh-workers
 help / color / mirror / code / Atom feed
* Strange parsing bug(?)
@ 2008-10-01  0:56 Richard Hartmann
  2008-10-01  1:05 ` Richard Hartmann
  2008-10-01  6:06 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Hartmann @ 2008-10-01  0:56 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-01  7:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-01  0:56 Strange parsing bug(?) Richard Hartmann
2008-10-01  1:05 ` Richard Hartmann
2008-10-01  6:06 ` Bart Schaefer
2008-10-01  7:36   ` Richard Hartmann

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).