SOURCES: bash-skel-.bash_profile - or rather the original that was in /etc/...

glen glen at pld-linux.org
Thu Jan 8 00:23:29 CET 2009


Author: glen                         Date: Wed Jan  7 23:23:29 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- or rather the original that was in /etc/bashrc (but inversed)

---- Files affected:
SOURCES:
   bash-skel-.bash_profile (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/bash-skel-.bash_profile
diff -u SOURCES/bash-skel-.bash_profile:1.8 SOURCES/bash-skel-.bash_profile:1.9
--- SOURCES/bash-skel-.bash_profile:1.8	Wed Jan  7 20:00:57 2009
+++ SOURCES/bash-skel-.bash_profile	Thu Jan  8 00:23:23 2009
@@ -2,7 +2,7 @@
 
 # execute local (and so system wide) rc file only when interactive (not from scp etc.)
 # bash is too dumb to do in on it's own when started as login shell
-if [ "${-##*i}" != "$-" -a -f ~/.bashrc ]; then
+if [[ $- = *i* ]] && [ -f ~/.bashrc ]; then
 	. ~/.bashrc
 fi
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/bash-skel-.bash_profile?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list