diff options
Diffstat (limited to 'libre/filesystem/profile')
-rw-r--r-- | libre/filesystem/profile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libre/filesystem/profile b/libre/filesystem/profile index a4f717734..790e59b1d 100644 --- a/libre/filesystem/profile +++ b/libre/filesystem/profile @@ -28,8 +28,13 @@ if test -d /etc/profile.d/; then unset profile fi -# Source global bash config -if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then +# Source global bash config, when interactive but not posix or sh mode +if test "$BASH" &&\ + test "$PS1" &&\ + test -z "$POSIXLY_CORRECT" &&\ + test "${0#-}" != sh &&\ + test -r /etc/bash.bashrc +then . /etc/bash.bashrc fi |