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

Ryan Schmidt ryandesign at macports.org
Thu Jan 31 00:06:23 PST 2008


On Jan 31, 2008, at 00:36, jmpp at macports.org wrote:

> Revision: 33591
>           http://trac.macosforge.org/projects/macports/changeset/33591
> Author:   jmpp at macports.org
> Date:     2008-01-30 22:36:50 -0800 (Wed, 30 Jan 2008)
>
> Log Message:
> -----------
>
> Seems like the source of all my pains is Installer.app, which  
> aparently limits the environment I run under in some way
> and forces SHELL to /bin/sh always (even if I run as a login shell,  
> it just doesn't seem to be possible to get to the
> user's info), rendering useless the `case` routine that tries to  
> determine the shell I need to tweak.
>
> As a lame workaround, I'm going to glob for *sh to match /bin/sh  
> and thus still write my settings to the common profile file,
> leaving all those *csh users out there a bit in dispair.

Could you read the user's real shell like this?

USHELL="$(nicl . -read /users/rschmidt shell | sed 's/^shell: //'')"




More information about the macports-dev mailing list