Subject: Re: bin/15544: /bin/sh trap command not POSIX compliant
To: None <jon@bullers.net>
From: Masao Uebayashi <uebayasi@soum.co.jp>
List: netbsd-bugs
Date: 02/09/2002 10:18:53
> #!/bin/sh
> 
> trap "echo trapped" INT
> 
> exit 0
(snip)
> 	Work around by using ksh.  I think the fix needs to be made
> 	on line 110 of /usr/src/bin/sh/trap.c  (rev 1.24.4.2) by
> 	making is_number() also recognize signal names.  Line 115
> 	also needs to be fixed to return the signal number when
> 	number() is given a string with the proper name.

This has been already fixed in -current. See rev 1.26 of trap.c.

Regards,
Masao