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