zsh-workers
 help / color / mirror / code / Atom feed
* parse errors and up-line-or-history
@ 2000-10-17 19:35 E. Jay Berkenbilt
  2000-10-17 21:21 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: E. Jay Berkenbilt @ 2000-10-17 19:35 UTC (permalink / raw)
  To: zsh-workers


If you type

zsh% for in *; do echo $i; done

(instead of for i in *...; i.e., forget the variable name in the for)

you get 

zsh: parse error near `do'

which seems entirely reasonable.  If you then do ^p to fix it, you see
only

zsh% for in *; do

and not the whole command.  It would be nice if the whole command
including whatever part appears after the parse error got inserted
into history since it would be much easier to go back and fix the
typo. :-)

--
E. Jay Berkenbilt (ejb@ql.org)  |  http://www.ql.org/q/


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

end of thread, other threads:[~2000-10-19  7:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-17 19:35 parse errors and up-line-or-history E. Jay Berkenbilt
2000-10-17 21:21 ` Bart Schaefer
2000-10-17 23:03   ` E. Jay Berkenbilt
2000-10-18  9:08   ` Peter Stephenson
2000-10-18 15:38     ` Bart Schaefer
2000-10-19  7:10       ` Wayne Davison

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