summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-24 16:21:47 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-24 16:21:47 +0100
commit68e038572bfa198a58d7d7bf3a06a2b838f6b201 (patch)
tree785ca3fe908b0ccf2fd00531c814c38f9f5323e4
parent8c191eecd403e1759789b70fb0b7283fd22c2b32 (diff)
parent18540892d18addc4dcb81c0cfa24706e14b3c5c8 (diff)
Merge pull request #2018 from keszybz/kill-signal
bash-completion: list only valid signal names
-rw-r--r--shell-completion/bash/systemd-nspawn3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-nspawn b/shell-completion/bash/systemd-nspawn
index 2636666b5d..429e712eb3 100644
--- a/shell-completion/bash/systemd-nspawn
+++ b/shell-completion/bash/systemd-nspawn
@@ -133,7 +133,8 @@ _systemd_nspawn() {
comps=$( compgen -A file -- "$cur" )
;;
--kill-signal)
- comps=$(compgen -A signal)
+ _signals
+ return
;;
esac
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )