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

Re: zsh-3.0-pre4 released



On Jul 27,  4:06am, Zoltan Hidvegi wrote:
} Subject: zsh-3.0-pre4 released
}
} Traps defined by a TRAPxxx function work as
} before.  TRAPxxx functions are undefined if the trap builtin is used to
} modify the corresponding trap.

Hmm ... you seem to be saying that

	TRAPHUP() { echo Hangup }
	trap "echo Hang UP" 1
	
causes an implicit "unfunction TRAPHUP".  What, then, happens if

	trap "echo Hangup" 1
	TRAPHUP() { echo Hang UP }

??  Does the TRAPHUP definition cause an implicit "trap - 1"?  Or do both
traps fire?

-- 
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