]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash-skel-.bash_profile
- working way
[packages/bash.git] / 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.023795 seconds and 4 git commands to generate.