On Jan 31, 2008, at 00:36, [EMAIL PROTECTED] wrote:
Revision: 33591
http://trac.macosforge.org/projects/macports/changeset/33591
Author: [EMAIL PROTECTED]
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: //'')"
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev