From 123a9c0bb466b1f5678343f5c1ed27103846ac7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 7 Jan 2009 23:23:23 +0000 Subject: [PATCH] - or rather the original that was in /etc/bashrc (but inversed) Changed files: bash-skel-.bash_profile -> 1.9 --- bash-skel-.bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0