bash-completion: remove one more sort and sub-shell

{} is preferred to (), because the first is just grouping, while the
second invokes a separate shell.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-09-28 17:23:53 -04:00
parent db79008804
commit 4ed2f1b1f1

View file

@ -87,8 +87,8 @@ __get_all_unit_files () { { __systemctl $1 list-unit-files; } | { while read -r
__get_machines() {
local a b
(machinectl list-images --no-legend --no-pager; machinectl list --no-legend --no-pager) | \
{ while read a b; do echo " $a"; done; } | sort -u;
{ machinectl list-images --no-legend --no-pager; machinectl list --no-legend --no-pager; } | \
{ while read a b; do echo " $a"; done; }
}
_systemctl () {