]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/mac.sh getent error msg on stderr
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 18 Mar 2017 22:03:33 +0000 (22:03 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 18 Mar 2017 22:03:33 +0000 (22:03 +0000)
etc/profile.d/mac.sh

index 8f1606634b00d3096493f699440cfee1e897bd93..0d00fd0b264024e11fc516817dcd866f9e44dcb2 100644 (file)
@@ -257,7 +257,7 @@ getent() {
     return
   fi
   [ "$1" = "group" ] && cat /etc/group && return
-  [ "$1" != "passwd" ] && echo "Support only passwd and group untill now" && return 1
+  [ "$1" != "passwd" ] && echo "Support only passwd and group untill now" 1>&2 && return 1
   [ -z "$2" ] && (ls_users; return)
   ls_users | grep "^$2:"
 }