mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
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:
parent
db79008804
commit
4ed2f1b1f1
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue