From be222bbb36193b84b30d54f8ae89ab84859364b5 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 29 Jan 2017 16:48:07 +0100 Subject: [PATCH] fix bug ls_users --- etc/profile.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 411c384f..ce1a1109 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -672,7 +672,7 @@ ls_users() { ; ;; *) - if [ -n "$(which zgetent 2>/dev/null)" ]; then + if [ -n "$(which getent 2>/dev/null)" ]; then getent passwd elif [ -e /etc/passwd ]; then grep '^[^#:]\+:' /etc/passwd | sort -u | sort -t : -k3,4 -n -- 2.47.3