|Anonymous | Login||2019-07-15 22:28 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001260||[1003.1(2016)/Issue7+TC2] Shell and Utilities||Comment||Clarification Requested||2019-06-14 21:12||2019-06-14 21:12|
|Page Number||2879, 2882 (in 2018 edition)|
|Line Number||94926-94929 95071 95092|
|Final Accepted Text|
|Summary||0001260: "kill pid" XSI only|
The synopsis of the kill utility suggests that "kill pid" is only required to be supported by systems implementing XSI as the non-XSI synopsis:
kill -s signal_name pid...
doesn't have -s signal_name in square brackets, suggesting it's mandatory. Is that intentional? I'd expect "kill 123", "kill -- -123", "kill %1" to consistently send SIGTERM to the 123 pid or pgid, or %1 job, portably even on non-XSI.
Line 95071 has:
kill −TERM −123
It seems to me it should be either:
kill -TERM -- -123
and be XSI shaded, or:
kill -s TERM -- -123
The rationale section has:
> To avoid an ambiguity of an initial negative number argument specifying either a signal number or a process group, POSIX.1-2017 mandates that it is always considered the former by implementations that support the XSI option. It also requires that conforming applications always use the "− −" options terminator argument when specifying a process group, <strong>unless an option is also specified.</strong>
I don't see anything in the normative text that says that a -- is not required when an option is specified.
AFAICT, in kill -s TERM -123 or kill -TERM -123, that -123 would still be treated as an option (and in practice is by several implementation).
Unless I'm missing something something, change first synopsis line to:
kill [−s signal_name] pid...
kill -TERM -123
kill -s TERM -- -123
Remove the "unless an option is also specified." part in the rationale.
|Tags||No tags attached.|
|There are no notes attached to this issue.|
|2019-06-14 21:12||stephane||New Issue|
|2019-06-14 21:12||stephane||Name||=> Stephane Chazelas|
|2019-06-14 21:12||stephane||Section||=> kill utility|
|2019-06-14 21:12||stephane||Page Number||=> 2879, 2882 (in 2018 edition)|
|2019-06-14 21:12||stephane||Line Number||=> 94926-94929 95071 95092|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|