From: Dan Kilman Date: Sun, 13 Apr 2014 15:06:13 +0000 (+0300) Subject: bash completion: fix __get_startable_units X-Git-Tag: v213~419 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a163b64c4b08e8a4ad39a9a295acf3d1634024a3 bash completion: fix __get_startable_units --- diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl index 992e52dbb..e1c842006 100644 --- a/shell-completion/bash/systemctl +++ b/shell-completion/bash/systemctl @@ -56,7 +56,7 @@ __get_all_units () { __systemctl $1 list-units --all \ __get_active_units () { __systemctl $1 list-units \ | { while read -r a b; do echo " $a"; done; }; } __get_startable_units () { __systemctl $1 list-units --all -t service,timer,socket,mount,automount,path,snapshot,swap \ - | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed " ]] && echo " $a"; done; }; } + | { while read -r a b c d; do [[ $c == "inactive" || $c == "failed" ]] && echo " $a"; done; }; } __get_failed_units () { __systemctl $1 list-units \ | { while read -r a b c d; do [[ $c == "failed" ]] && echo " $a"; done; }; } __get_enabled_units () { __systemctl $1 list-unit-files \