summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 17:23:53 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 17:23:53 -0400
commit4ed2f1b1f106b84276eaf8cc4d27cca54653845e (patch)
treed0a742516f5b09f5a57a0750571c58e0f3b49f8f /shell-completion
parentdb79008804f7bd0e5ef48c454ed6aa58a3dfa268 (diff)
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.
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemctl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index c8e17de7bc..29bb41c436 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 () {