From: Zbigniew Jędrzejewski-Szmek Date: Mon, 28 Sep 2015 21:23:53 +0000 (-0400) Subject: bash-completion: remove one more sort and sub-shell X-Git-Tag: v227~49^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed2f1b1f106b84276eaf8cc4d27cca54653845e;p=thirdparty%2Fsystemd.git 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. --- diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index c8e17de7bc3..29bb41c436d 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -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 () {