Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
parse errors and up-line-or-history
- X-seq: zsh-workers 13013
- From: "E. Jay Berkenbilt" <ejb@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: parse errors and up-line-or-history
- Date: Tue, 17 Oct 2000 15:35:08 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxx) | http://www.ql.org/q/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author