1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

bash-completion: busctl: do not suggest "-" for signature

Fixes #8371.
This commit is contained in:
Yu Watanabe 2018-03-30 17:08:11 +09:00
parent 1e58b1dc40
commit 4cbb7c500a

View 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() {