From: Elan Ruusamäe Date: Wed, 7 Jan 2009 23:23:23 +0000 (+0000) Subject: - or rather the original that was in /etc/bashrc (but inversed) X-Git-Tag: auto/ac/bash-3_2_48-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbash.git;a=commitdiff_plain;h=123a9c0bb466b1f5678343f5c1ed27103846ac7c - or rather the original that was in /etc/bashrc (but inversed) Changed files: bash-skel-.bash_profile -> 1.9 --- diff --git a/bash-skel-.bash_profile b/bash-skel-.bash_profile index d9643a1..a010ccb 100644 --- a/bash-skel-.bash_profile +++ b/bash-skel-.bash_profile @@ -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