aboutsummaryrefslogtreecommitdiffstats
path: root/profile.d
diff options
context:
space:
mode:
Diffstat (limited to 'profile.d')
-rwxr-xr-xprofile.d/msec.csh16
-rwxr-xr-xprofile.d/msec.sh4
2 files changed, 5 insertions, 15 deletions
diff --git a/profile.d/msec.csh b/profile.d/msec.csh
index 0a6bd70..5ff87ab 100755
--- a/profile.d/msec.csh
+++ b/profile.d/msec.csh
@@ -24,19 +24,9 @@ endif
# using unhash *after modifying PATH* fixes the pb
# So while modifying the PATH, do not rely on the PATH until unhash is done
-if ! { (echo "${PATH}" | /bin/grep -q /usr/X11R6/bin) } then
- setenv PATH "${PATH}:/usr/X11R6/bin"
-endif
-
-if ! { (echo "${PATH}" | /bin/grep -q /usr/games) } then
- setenv PATH "${PATH}:/usr/games"
-endif
-
-if ( ${?SECURE_LEVEL} ) then
- if ( ${SECURE_LEVEL} <= 1 ) then
- if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then
- setenv PATH "${PATH}:."
- endif
+if ( ${?ALLOW_CURDIR_IN_PATH} == 'yes' ) then
+ if ! { (echo "${PATH}" | /bin/fgrep -q :.) } then
+ setenv PATH "${PATH}:."
endif
endif
diff --git a/profile.d/msec.sh b/profile.d/msec.sh
index 288d72b..76508ae 100755
--- a/profile.d/msec.sh
+++ b/profile.d/msec.sh
@@ -18,8 +18,8 @@ else
fi
fi
-if [ -n "$SECURE_LEVEL" ]; then
- if [ "$SECURE_LEVEL" -le 1 ] && ! echo ${PATH} | fgrep -q :.; then
+if [ "$ALLOW_CURDIR_IN_PATH" == "yes" ]; then
+ if ! echo ${PATH} | fgrep -q :.; then
export PATH=$PATH:.
fi
fi