Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

parse errors and up-line-or-history



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