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

Re: script using vared to read commands - history bug



Greg Klanderman wrote:

> If I run the following script:
> 
>     #!/bin/zsh
> 
>     prompt="%B%%%b "
>     while cmd="" && vared -h -p "$prompt" cmd ; do 
>       echo " -- got: $cmd"
>       print -s - "$cmd"
>     done
> 
> it works as intended, except that the most recent 
> command never appears in the history.  What's up?

Another one of the things that have been fixed in the meantime.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author