X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=shell-completion%2Fbash%2Ftimedatectl;h=c6a6545257215201cf0f75cd0a0fe5eb888c6809;hp=2842b3106925d81fb470f670b1cd439a748792f6;hb=b5b7ea750388919eee6087eb63f08903b57447cf;hpb=d611dadcc74db10ba533ee6859308f5fc505aee1;ds=sidebyside diff --git a/shell-completion/bash/timedatectl b/shell-completion/bash/timedatectl index 2842b3106..c6a654525 100644 --- a/shell-completion/bash/timedatectl +++ b/shell-completion/bash/timedatectl @@ -18,9 +18,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 } _timedatectl() {