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

Odd behavior of "trap" and "functions" in 3.0-pre2



I create a TRAPALRM function in .zshrc to update my titlebar.  No problem
with that ...

zagzig<13> trap
TRAPALRM () {
        TMOUT=60
        title
}

So now I add another trap ...

zagzig<14> trap "echo foo" USR2
zagzig<15> kill -USR2 $$
foo

So far so good ...

zagzig<16> trap
TRAPUSR2 () {
        echo foo
}
TRAPALRM () {
        TMOUT=60
        title
}

All fine.  However ...

zagzig<17> grep TRAP <<(functions)
TRAPALRM () {
zagzig<18>

I'm almost certain that `functions` used to list all the TRAPxxx ....


-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"




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