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

bug message is a bug



% TRAPINT() { : }
% unfunction TRAPINT
BUG: I did not find any trap functions!

I don't think it's a bug at all.  The unfunction code removes the
function from the hash table, then calls the unsettrap() code.  This
looks for the already-removed function and incorrectly reports the
above error when it doesn't find it.  Unless the subroutine can tell
how it's been called, the DPUTS at l. 689 of signals.c should probably
just be removed.  I think the same test in the bin_trap code in
builtin.c is O.K.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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