Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
script using vared to read commands - history bug
- X-seq: zsh-workers 13044
- From: greg@xxxxxxxxxxxxxxx (Greg Klanderman)
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh list)
- Subject: script using vared to read commands - history bug
- Date: Fri, 20 Oct 2000 00:13:41 -0400 (EDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: greg@xxxxxxxxxxxxxxx
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?
thank,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author