[31818] branches/release_1_6/base/portmgr/dmg/postflight
jmpp at macports.org
jmpp at macports.org
Sat Dec 8 08:02:41 PST 2007
Revision: 31818
http://trac.macosforge.org/projects/macports/changeset/31818
Author: jmpp at macports.org
Date: 2007-12-08 08:02:40 -0800 (Sat, 08 Dec 2007)
Log Message:
-----------
This script is only meant for users with a fully default environment, and in such bash is
the default shell so lets not glob for all bourne based shells. We deal with tcsh too by
extension because that was default for Mac OS X at one point, but in a similar fashion lets
limit ourselves only to that shell and not all C based shells with the *csh glob.
This commit follows advise from Vincent Lefevre on the dev list that modifying the environment
in ~/.profile for the zsh shell as we would here thanks to the *sh glob is ill-advised. What I
think about that is: a) annyone running zsh is *not* running a default environment and thus is
outside the scope of this script; b) anyone savvy enough to switch to zsh (or to any other shell
away from the default, for that matter) should also be savvy enough to setup his/her own environment.
Modified Paths:
--------------
branches/release_1_6/base/portmgr/dmg/postflight
Modified: branches/release_1_6/base/portmgr/dmg/postflight
===================================================================
--- branches/release_1_6/base/portmgr/dmg/postflight 2007-12-08 16:01:46 UTC (rev 31817)
+++ branches/release_1_6/base/portmgr/dmg/postflight 2007-12-08 16:02:40 UTC (rev 31818)
@@ -42,10 +42,10 @@
exit 1
fi
case $USHELL in
- *csh)
+ tcsh)
CONF_FILE=.cshrc
;;
- *sh)
+ bash)
CONF_FILE=.profile
;;
*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071208/01cdc618/attachment-0001.html
More information about the macports-changes
mailing list