]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - shell-completion/bash/systemd-path
Merge pull request #9504 from poettering/nss-deadlock
[thirdparty/systemd.git] / shell-completion / bash / systemd-path
index cdaf29794e332b7d91deac89cd03f9c5ca452ad5..5d99775c2d00daebf7e9f08b7c62f25771a7db42 100644 (file)
@@ -1,4 +1,5 @@
 # systemd-path(1) completion                               -*- shell-script -*-
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # This file is part of systemd.
 #
@@ -24,7 +25,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() {