Subject: Re: bin/15544: /bin/sh trap command not POSIX compliant
To: None <>
From: Masao Uebayashi <>
List: netbsd-bugs
Date: 02/09/2002 10:18:53
> #!/bin/sh
> trap "echo trapped" INT
> exit 0
> 	Work around by using ksh.  I think the fix needs to be made
> 	on line 110 of /usr/src/bin/sh/trap.c  (rev 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.