From: Alexander Barton Date: Sat, 29 Aug 2009 21:54:24 +0000 (+0200) Subject: Don't source /etc/profile.d/*.csh scripts X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=a847c60c82924ef400f4bf924a9dfffa9dd29b33 Don't source /etc/profile.d/*.csh scripts --- 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