]> git.pld-linux.org Git - packages/bash.git/commitdiff
- working way
authortommat <tommat@pld-linux.org>
Wed, 7 Jan 2009 19:00:57 +0000 (19:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-skel-.bash_profile -> 1.8

bash-skel-.bash_profile

index 7837e8d011c2c6f513a916528da778274429fd23..d9643a1b0fbb303110fc4340f190e4a12c8b153e 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* && -f ~/.bashrc ]; then
+if [ "${-##*i}" != "$-" -a -f ~/.bashrc ]; then
        . ~/.bashrc
 fi
 
This page took 0.10146 seconds and 4 git commands to generate.