Revision
31818
Author
jmpp@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

Diff

Modified: branches/release_1_6/base/portmgr/dmg/postflight (31817 => 31818)


--- 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
         ;;
     *)