X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fjournalctl;h=942a25357f82a3cfead9cae681e4bba9e8c068b8;hb=966204e010ed432a1d7a0481d41a326d8ec7b0c8;hp=29bf6bca3fe95f6739788e7ea7aa2cbdd807693c;hpb=a331b5e6d4724365bad9edeb9420c7e26e7f50da;p=elogind.git diff --git a/shell-completion/bash/journalctl b/shell-completion/bash/journalctl index 29bf6bca3..942a25357 100644 --- a/shell-completion/bash/journalctl +++ b/shell-completion/bash/journalctl @@ -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 } __journal_fields=(MESSAGE{,_ID} PRIORITY CODE_{FILE,LINE,FUNC} @@ -41,7 +42,7 @@ _journalctl() { --disk-usage -f --follow --header -h --help -l --local --new-id128 -m --merge --no-pager --no-tail -q --quiet --setup-keys --this-boot --verify - --version --list-catalog --update-catalog' + --version --list-catalog --update-catalog --list-boots' [ARG]='-b --boot --this-boot -D --directory -F --field -o --output -u --unit --user-unit' [ARGUNKNOWN]='-c --cursor --interval -n --lines -p --priority --since --until