On 05/19/2010 12:30 AM, Ralf Wildenhues wrote: >> POSIX requires signals specified as names (HUP, INT, etc), >> although XSI allows numbers for certain signals (the ones used by >> gnulib all fall into this category). > > We've had a similar discussion about this on an Autoconf list a while > ago (with a Debian maintainer). The Autoconf manual, Shell Portability > chapter, lists 1 2 13 15 as signals which are safe to trap. I'm not > aware of any shell which does not accept these signal numbers in > practice, except for maybe one that was written specifically to inflict > extra pain upon shell script authors by explicitly disallowing them.
For a further analysis: ash on cygwin understands _only_ numbers, not names. posh on debian understands _only_ names, not numbers. But ash on cygwin is quite old, and posh falls in the category of shells that inflict extra pain upon shell script authors. -- Eric Blake [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
