]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: busctl: do not suggest "-" for signature
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 30 Mar 2018 08:08:11 +0000 (17:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 30 Mar 2018 08:08:14 +0000 (17:08 +0900)
Fixes #8371.

shell-completion/bash/busctl

index cfa4d4fa83143b3cfa50ef82e15f847351965437..c467b291b3ff5eaa4f625411fc39e45289a4a6c9 100644 (file)
@@ -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() {