Subject: Re: sh: builtin function trap
To: Berndt Josef Wulf <wulf@dingo.ping.net.au>
From: Charles M. Hannum <root@ihack.net>
List: netbsd-help
Date: 02/27/2001 13:51:48
On Wed, Feb 28, 2001 at 08:11:04AM +1030, Berndt Josef Wulf wrote:
> > 
> > On Wed, Feb 28, 2001 at 12:10:46AM +1030, Berndt Josef Wulf wrote:
> > > 
> > > an error is reported when issuing a trap command with multiple
> > > arguments.... 
> > > 
> > > e.g.
> > > trap INT QUIT TSTP
...
> Right...
> 
> kdbg-1.2, a kde wrapper to dbg, uses literals as shown above.
> Is there any reason why NetBSD never implemented this? 

Because you didn't write the code yet?  B-)

> It wouldn't be a hard thing to do. Is there a specification that
> describes the requirements and the expected behavior for this sh and
> in particular for the builtin trap function?

Dunno.  I'd check POSIX; they were certainly keen on having kill(1)
accept names, so I wouldn't be surprised if they had something to say
about sh(1).