bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testsuite portability nit


From: James Youngman
Subject: Re: testsuite portability nit
Date: Mon, 18 Apr 2005 00:58:31 +0100
User-agent: Mutt/1.3.28i

On Sat, Apr 16, 2005 at 04:35:39PM -0600, Eric Blake wrote:

> On cygwin, where /bin/sh is ash, "trap '' CHLD" doesn't work (ash only
> accepts signal numbers, not names):
> 
> $ trap '' CHLD
> trap: bad signal CHLD
> 
> But CHLD is not one of the portable signal numbers (it is 20 on cygwin,
> but other numbers on other platforms).  Not all versions of kill(1) can
> convert names to numbers, but this is coreutils.

The names should be used instead of numbers.  That is, the existing
usage seems to be the right thing to do; it's what POSIX mangates
nowadays.  See
http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html.

Regards,
James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]