zsh-workers
 help / color / mirror / code / Atom feed
* Odd behavior of "trap" and "functions" in 3.0-pre2
@ 1996-07-06 19:09 Bart Schaefer
  1996-07-26  8:08 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 1996-07-06 19:09 UTC (permalink / raw)
  To: zsh-workers

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"



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-07-26 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-06 19:09 Odd behavior of "trap" and "functions" in 3.0-pre2 Bart Schaefer
1996-07-26  8:08 ` Peter Stephenson
1996-07-26  8:15   ` Printing blank funcion Peter Stephenson
1996-07-26 11:56   ` Odd behavior of "trap" and "functions" in 3.0-pre2 Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).