X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemd-analyze;fp=shell-completion%2Fbash%2Fsystemd-analyze;h=33833aac105f0c0351660dd6c13e14fe3da8d9a2;hp=11276ef09cd68b1c75bec21c88702b4191257443;hb=a72d698d0d9ff9c158155b44cdc77376df31a317;hpb=751e75769a0a8a255e1a47656f639768879e9518 diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 11276ef09..33833aac1 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -19,9 +19,10 @@ # along with systemd; If not, see . __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 } _systemd_analyze() {