Subject: Re: sh: builtin function trap
To: Charles M. Hannum <root@ihack.net>
From: Berndt Josef Wulf <wulf@dingo.ping.net.au>
List: netbsd-help
Date: 02/28/2001 08:11:04
Charles M. Hannum 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
>
> The `trap' command doesn't accept signal names, only numbers. The only
> reason it doesn't complain about `INT' is that the first argument is
> the script to run, not a signal number.
Right...
kdbg-1.2, a kde wrapper to dbg, uses literals as shown above.
Is there any reason why NetBSD never implemented this?
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?
cheerio Berndt
--
Name : Berndt Josef Wulf | +++ With BSD on Packet Radio +++
E-Mail : wulf@ping.net.au | tfkiss, tnt, dpbox, wampes
ICQ : 18196098 | VK5ABN, Nairne, South Australia
URL : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.5 | BBS : vk5abn.#lmr.#sa.aus.oc