summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemctl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/systemctl')
-rw-r--r--shell-completion/bash/systemctl7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl
index ceca3348ed..517b49a6af 100644
--- a/shell-completion/bash/systemctl
+++ b/shell-completion/bash/systemctl
@@ -32,9 +32,10 @@ __systemd_properties() {
}
__contains_word () {
- local word=$1; shift
- for w in $*; do [[ $w = $word ]] && return 0; done
- return 1
+ local w word=$1; shift
+ for w in "$@"; do
+ [[ $w = "$word" ]] && return
+ done
}
__filter_units_by_property () {