chiark / gitweb /
bash-completion: list valid signal names
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 24 Nov 2015 16:05:42 +0000 (16:05 +0000)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:14 +0000 (15:22 +0200)
this is a follow-up for commit 18540892d18addc4dcb81

shell-completion/bash/loginctl

index 7a083d2..776eca4 100644 (file)
@@ -41,7 +41,8 @@ _loginctl () {
         if __contains_word "$prev" ${OPTS[ARG]}; then
                 case $prev in
                         --signal|-s)
-                                comps=$(compgen -A signal)
+                                _signals
+                                return
                         ;;
                         --kill-who)
                                 comps='all leader'