Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: script using vared to read commands - history bug
- X-seq: zsh-workers 13046
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: script using vared to read commands - history bug
- Date: Fri, 20 Oct 2000 09:12:19 +0200 (MET DST)
- In-reply-to: greg@xxxxxxxxxxxxxxx's message of Fri, 20 Oct 2000 00:13:41 -0400 (EDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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