From a847c60c82924ef400f4bf924a9dfffa9dd29b33 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 29 Aug 2009 23:54:24 +0200 Subject: [PATCH] Don't source /etc/profile.d/*.csh scripts --- sys/profile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/profile b/sys/profile index 9d20473..0078f57 100644 --- a/sys/profile +++ b/sys/profile @@ -83,7 +83,15 @@ fi # read profile additions if [ -d /etc/profile.d ]; then for f in /etc/profile.d/*; do - [ -r "$f" ] && . "$f" + [ -r "$f" ] || continue + case "$f" in + *.csh) + ;; + *) + [ -e ~/.ConfigScripts.debug ] \ + && echo " >> $f ..." + . "$f" + esac done fi -- 2.39.2