GNU bug report logs - #9473
"kill -l" doesn't conform to POSIX when POSIXLY_CORRECT is set

Previous Next

Package: coreutils;

Reported by: shea <at> shealevy.com

Date: Sun, 11 Sep 2011 11:19:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: shea <at> shealevy.com
Subject: bug#9473: closed (Re: bug#9473: "kill -l" doesn't conform to
 POSIX when POSIXLY_CORRECT is	set)
Date: Sun, 11 Sep 2011 23:15:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#9473: "kill -l" doesn't conform to POSIX when POSIXLY_CORRECT is set

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 9473 <at> debbugs.gnu.org.

-- 
9473: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9473
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: shea <at> shealevy.com
Cc: 9473-done <at> debbugs.gnu.org
Subject: Re: bug#9473: "kill -l" doesn't conform to POSIX when POSIXLY_CORRECT
	is	set
Date: Sun, 11 Sep 2011 16:09:49 -0700
Typically, 'kill' is built into the shell, and you're undoubtedly
invoking your shell's version of kill.  So you need to send a bug report
to your shell's maintainer, not to coreutils'.

For example, on my host:

$ /home/eggert/opt/Linux-x86_64/coreutils-8.13/bin/kill -l | head -n 1
HUP
$ kill -l | head -n 1
 1) SIGHUP	 2) SIGINT	 3) SIGQUIT	 4) SIGILL	 5) SIGTRAP

So coreutils conforms, but the shell does not.

[Message part 3 (message/rfc822, inline)]
From: shea <at> shealevy.com
To: bug-coreutils <at> gnu.org
Subject: "kill -l" doesn't conform to POSIX when POSIXLY_CORRECT is set
Date: Sun, 11 Sep 2011 01:25:38 -0700
From http://pubs.opengroup.org/onlinepubs/9699919799/utilities/kill.html:

  When the -l option is specified, the symbolic name of each signal shall
be written in the following
  format:

  "%s%c", <signal_name>, <separator>

  where the <signal_name> is in uppercase, without the SIG prefix, and the
<separator> shall be
  either a <newline> or a <space>. For the last signal written,
<separator> shall be a <newline>.

"kill -l" currently prints a table with each signal preceded by its number
and with the SIG prefixes, even with POSIXLY_CORRECT.




This bug report was last modified 13 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.