On Jan 31, 2008, at 11:25 AM, Ryan Schmidt wrote:
So we should set THE_UTIL to "nicl" on 10.4 and earlier, or "dscl" on 10.5 and up, and then use:

        $THE_UTIL . -read /users/$USER shell | sed 's/^.*: //'

I don't see why you need to use nicl anywhere (if they both produce the same output as you say).

As an added bonus, dscl will work on 10.4 even if the user's information isn't stored in netinfo (whereas nicl won't).

--
Daniel J. Luke
+========================================================+
| *---------------- [EMAIL PROTECTED] ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+



Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to