X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=shell-completion%2Fbash%2Fsystemctl;h=e1c842006e3ee885401723d813425e84355e3ad6;hb=a163b64c4b08e8a4ad39a9a295acf3d1634024a3;hp=992e52dbb08c87d554125bffb0938f275b62ff17;hpb=085ebc1b222b4fc7329a03c8459fe5fb1844c802;p=elogind.git 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 \