summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-03-30 10:08:11 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-03-30 10:08:14 +0200
commit4cbb7c500aa664452f45f8ec5a2b1f79a872eb2e (patch)
tree8c064318be9266da678659f510aa6833467fbd65 /shell-completion/bash
parentbash-completion: busctl: suggests only writable properties for set-property (diff)
downloadsystemd-4cbb7c500aa664452f45f8ec5a2b1f79a872eb2e.tar.xz
systemd-4cbb7c500aa664452f45f8ec5a2b1f79a872eb2e.zip
bash-completion: busctl: do not suggest "-" for signature
Fixes #8371.
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/busctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/busctl b/shell-completion/bash/busctl
index cfa4d4fa83..c467b291b3 100644
--- a/shell-completion/bash/busctl
+++ b/shell-completion/bash/busctl
@@ -70,7 +70,7 @@ __get_signature() {
local interface=$4
local member=$5
local a b
- busctl $mode introspect --list --no-legend --no-pager $busname $path $interface | sed -e 's/^\.//' | { while read a b c d; do [[ "$a" == "$member" ]] && echo " \"$c\""; done; };
+ busctl $mode introspect --list --no-legend --no-pager $busname $path $interface | sed -e 's/^\.//' | { while read a b c d; do [[ "$a" == "$member" && "$c" != '-' ]] && echo " \"$c\""; done; };
}
_busctl() {