summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-11-24 09:39:27 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-11-24 09:39:49 -0500
commit18540892d18addc4dcb81c0cfa24706e14b3c5c8 (patch)
treee745ecb7bc54995a8b101a6f88d5b40a1806b5e4
parent3719f851e3cbf25ce6b195ed9982d0b9d25a34d4 (diff)
bash-completion: list only valid signal names
Fixup for #1999.
-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") )