summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 15:42:27 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-09-28 15:42:27 -0400
commitdb79008804f7bd0e5ef48c454ed6aa58a3dfa268 (patch)
tree7067eae2e382d7868ea61f043046cf7ae69f29cc /shell-completion
parentb00c1cf9d61ccd9b0f7bc131f01d80bb5736af0d (diff)
bash-completion: use builtins when generating list
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/systemd-path2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/systemd-path b/shell-completion/bash/systemd-path
index cdaf29794e..2f0c5f5bd7 100644
--- a/shell-completion/bash/systemd-path
+++ b/shell-completion/bash/systemd-path
@@ -24,7 +24,7 @@ __contains_word () {
}
__get_names() {
- systemd-path | cut -d: -f1 | sort -u
+ systemd-path | { while IFS=: read -r a b; do echo " $a"; done; }
}
_systemd_path() {