SOURCES: bash-skel-.bash_profile - working way

tommat tommat at pld-linux.org
Wed Jan 7 20:01:03 CET 2009


Author: tommat                       Date: Wed Jan  7 19:01:03 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- working way

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

---- Diffs:

================================================================
Index: SOURCES/bash-skel-.bash_profile
diff -u SOURCES/bash-skel-.bash_profile:1.7 SOURCES/bash-skel-.bash_profile:1.8
--- SOURCES/bash-skel-.bash_profile:1.7	Thu Dec 25 14:46:12 2008
+++ SOURCES/bash-skel-.bash_profile	Wed Jan  7 20:00:57 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* && -f ~/.bashrc ]; then
+if [ "${-##*i}" != "$-" -a -f ~/.bashrc ]; then
 	. ~/.bashrc
 fi
 
================================================================

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



More information about the pld-cvs-commit mailing list