[33591] branches/release_1_6/base/portmgr/dmg/postflight

Daniel J. Luke dluke at geeklair.net
Thu Jan 31 08:08:31 PST 2008


On Jan 31, 2008, at 10:29 AM, Juan Manuel Palacios wrote:
>> USHELL="$(nicl . -read /users/rschmidt shell | sed 's/^shell: //'')"
>
> 	In any case, your suggestion seems straight forward and simple  
> enough, so I'll quit trying to reinvent the wheel and will give it a  
> shot as soon as I get a few spare minutes (there are some  
> implementation details, like nicl for < 10.4 and dscl for Leopard,  
> among others).


except that you want to use dscl instead of nicl (and then need to  
tweak the sed pattern).

Something like:

dscl . -read /users/dluke shell | sed 's/^.*shell: //'

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20080131/06d6cfa9/PGP.bin


More information about the macports-dev mailing list