From: Nicolas Boisselier Date: Sun, 29 Jan 2017 15:48:07 +0000 (+0100) Subject: fix bug ls_users X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=be222bbb36193b84b30d54f8ae89ab84859364b5;p=nb.git fix bug ls_users --- 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