[Pkg-zsh-devel] Bug#862978: zsh: `kill -L` doesn't work

Robbie Harwood rharwood at club.cc.cmu.edu
Fri May 19 14:36:25 UTC 2017


Package: zsh
Version: 5.3.1-4+b1
Severity: minor

Dear Maintainer,

As per kill(1), -L should generate a pretty list of signals and values.  Like
this:

    rharwood at thriss:~$ /bin/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

However, it does not.  Instead, it does this:

    rharwood at thriss:~$ kill -L
    kill: unknown signal: SIGL
    kill: type kill -l for a list of signals

Moreover, this should be a synonym:

    rharwood at thriss:~$ kill --table
    kill: unknown signal: SIG-TABLE
    kill: type kill -l for a list of signals

I don't really know whether zsh should implement these, but it should respond
correctly to the flag (even if it means calling out to /bin/kill).  For
reference, here's what bash does:

    rharwood at thriss:~$ kill -L
     1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
     6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
    11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
    16) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP
    21) SIGTTIN     22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ
    26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO       30) SIGPWR
    31) SIGSYS      34) SIGRTMIN    35) SIGRTMIN+1  36) SIGRTMIN+2  37) SIGRTMIN+3
    38) SIGRTMIN+4  39) SIGRTMIN+5  40) SIGRTMIN+6  41) SIGRTMIN+7  42) SIGRTMIN+8
    43) SIGRTMIN+9  44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
    48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12
    53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9  56) SIGRTMAX-8  57) SIGRTMAX-7
    58) SIGRTMAX-6  59) SIGRTMAX-5  60) SIGRTMAX-4  61) SIGRTMAX-3  62) SIGRTMAX-2
    63) SIGRTMAX-1  64) SIGRTMAX


Thanks!

-- Package-specific info:
Packages which depend, recommend, suggest or enhance a zsh package and hence may provide code meant to be sourced in .zshrc:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  zsh-syntax-hig 0.5.0-1      all          Fish shell like syntax highlighti

Packages which provide vendor completions:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  awscli         1.11.44-1    all          Universal Command Line Environmen
ii  curl           7.52.1-5     amd64        command line tool for transferrin
ii  git-buildpacka 0.8.12.2     all          Suite to help with Debian package
ii  systemd        232-23       amd64        system and service manager
ii  udev           232-23       amd64        /dev/ and hotplug management daem
ii  vlc-bin        2.2.5.1-1~de amd64        binaries from VLC

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/


-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (600, 'unstable-debug'), (600, 'testing-debug'), (600, 'unstable'), (600, 'testing'), (200, 'experimental-debug'), (200, 'experimental')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-rt-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages zsh depends on:
ii  dpkg        1.18.24
ii  libc6       2.24-10
ii  libcap2     1:2.25-1
ii  libtinfo5   6.0+20161126-1
ii  zsh-common  5.3.1-4

Versions of packages zsh recommends:
ii  libc6         2.24-10
ii  libncursesw5  6.0+20161126-1
ii  libpcre3      2:8.39-3

Versions of packages zsh suggests:
ii  zsh-doc  5.3.1-4

-- no debconf information



More information about the Pkg-zsh-devel mailing list