Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug: using send-break at "select" prompt breaks a bit too much
- X-seq: zsh-workers 7328
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Bug: using send-break at "select" prompt breaks a bit too much
- Date: Sun, 1 Aug 1999 07:39:19 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Check this out:
function oops() {
setopt localoptions localtraps
trap "echo got signal" 0 1 2 3 15 ZERR DEBUG
select x in a b c
do echo $REPLY
done
echo "finished select"
}
Put that in your $fpath and run "oops". Try ^C and ^\ (or ^_ or whatever
you have sending QUIT). Then use ^G (send-break). Note that the whole
function is killed, but "finished select" is never printed nor are any
traps triggered.
Now try the same thing with "zsh -ic oops". It shouldn't matter much.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author