Subject: Re: sh: builtin function trap
To: None <root@ihack.net>
From: Chet Ramey <chet@nike.ins.cwru.edu>
List: netbsd-help
Date: 02/28/2001 07:58:06
> > 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).
`trap' is required to accept signal names, possibly with a `SIG' prefix.
It may not accept signal numbers unless the system's signal numbering
corresponds to a set of values enumerated in the POSIX standard
(SIGHUP == 1, SIGINT == 2, and so on).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/