]> git.pld-linux.org Git - packages/bash.git/commitdiff
- or rather the original that was in /etc/bashrc (but inversed)
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 7 Jan 2009 23:23:23 +0000 (23:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-skel-.bash_profile -> 1.9

bash-skel-.bash_profile

index d9643a1b0fbb303110fc4340f190e4a12c8b153e..a010ccb7ee78ae066533faff2f0e9b373881fa9a 100644 (file)
@@ -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
 
This page took 0.10914 seconds and 4 git commands to generate.