Subject: Re: NetBSD sh and ksh trap and signal handling incompatibilities with ATT ksh93 and Bash
To: NetBSD User-Level Technical Discussion List <tech-userlevel@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 09/28/2007 22:57:42
On Fri, Sep 28, 2007 at 03:50:05PM -0400, Greg A. Woods wrote:
> 
> It also seems that in ksh93 trap handlers in functions are transient
> whereas in /bin/ksh they get set and left there when the function is
> executed.  This is probably even harder to fix given the current
> implementation.

http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
section 2.12 Shell Exection Environment says that the 'Current traps
set by trap' are part of the execution environmnet, so any set inside
functions are still global.
So ksh93 is non-conformant here.

	David

-- 
David Laight: david@l8s.co.uk