From: Russ Allbery Date: Sat, 3 Jul 2010 23:49:58 +0000 (-0700) Subject: Require /bin/sh support XSI extensions for kill and trap X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c1a969dcf80fd484101874e69ed231ff33f17a7a;p=debian%2Fdebian-policy.git Require /bin/sh support XSI extensions for kill and trap Due to the widespread use of these extensions by scripts already in the archive, require that /bin/sh support the XSI extensions for kill and trap which permit kill - and use of numeric signals for well-known signals. Also permit trapping of SIGPIPE by signal number, since this is done by well-known portable shell scripts like libtool. --- diff --git a/policy.sgml b/policy.sgml index bad28af..1658cbf 100644 --- a/policy.sgml +++ b/policy.sgml @@ -7427,7 +7427,19 @@ fname () { must be supported and must set the value of c to delta. - + + The XSI extension to kill allowing kill + -signal, where signal is either + the name of a signal or one of the numeric signals listed in + the XSI extension (0, 1, 2, 3, 6, 9, 14, and 15), must be + supported. + + The XSI extension to trap allowing numeric + symbols must be supported. However, only the signal numbers + listed in the extension, which are the same as + for kill above, plus SIGPIPE (13) must be + supported. + If a shell script requires non-SUSv3 features from the shell interpreter other than those listed above, the appropriate shell