]> git.pld-linux.org Git - packages/bash.git/blobdiff - bash-skel-.bash_profile
- or rather the original that was in /etc/bashrc (but inversed)
[packages/bash.git] / 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.052833 seconds and 4 git commands to generate.