I wanted to fix it in the procps package where kill belongs to.
But there everything is ok, like:

.libs/kill -l
HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT
CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS

 .libs/kill --list
HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT
CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS

.libs/kill -L
 1 HUP      2 INT      3 QUIT     4 ILL      5 TRAP     6 ABRT     7 BUS
 8 FPE      9 KILL    10 USR1    11 SEGV    12 USR2    13 PIPE    14 ALRM
15 TERM    16 STKFLT  17 CHLD    18 CONT    19 STOP    20 TSTP    21 TTIN
22 TTOU    23 URG     24 XCPU    25 XFSZ    26 VTALRM  27 PROF    28 WINCH
29 POLL    30 PWR     31 SYS     

.libs/kill --table
 1 HUP      2 INT      3 QUIT     4 ILL      5 TRAP     6 ABRT     7 BUS
 8 FPE      9 KILL    10 USR1    11 SEGV    12 USR2    13 PIPE    14 ALRM
15 TERM    16 STKFLT  17 CHLD    18 CONT    19 STOP    20 TSTP    21 TTIN
22 TTOU    23 URG     24 XCPU    25 XFSZ    26 VTALRM  27 PROF    28 WINCH
29 POLL    30 PWR     31 SYS

Just how it should be.

Next I thought this is upstream, maybe it is broken back in 14.04 I have or the 
15.04 it was reported by others.
But in fact it turns out, it isn't procps at all.

It is the bash builtin "kill" which doesn't match the man page of the procps 
kill.
Because when running against /bin/kill all the commands work as described in 
the manpage.


To make it complete here a summary of the bash builtin kill functionality 
regarding these options
1. Works
kill -l
kill -l <SIGNUM>

2. doesn't work
kill --list
kill --table
kill -L

The output of bashs "kill -l" is more or less equivalent to the procps
"kill -L" in table format.

So what is really missing could be just mapping the existing code for -l in the 
bash builtin to the options "--list", "--table", and "-L".
That would be least invasive and fix the mapping of the real binary man page 
and the bash builtin to 99%.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/1488939

Title:
  kill -L behaviour (is it a doc or code error?)

Status in One Hundred Papercuts:
  Confirmed
Status in procps package in Ubuntu:
  Confirmed

Bug description:
  $man kill
  [...]
         -L, --table
                List signal names in a nice table.
  [...Examples section]
         kill -L
                List the available signal choices in a nice table.

  $ kill -L
  bash: kill: L: invalid signal specification

  I'm not sure if it is a doc or code error, but the actual behaviour is
  not what the doc describes...

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1488939/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to