I noticed a change in package filesystem:
https://gitea.artixlinux.org/artixlinux/packages/commit/3cfb01a53cc20a724954f8450f3b9a3e975fac31
specifically at line 31
# Source global bash config
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash/bashrc; then
. /etc/bash/bashrc
changed to
# 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
now /etc/profile only gets sourced when i either run bash twice or su to a different user.
Using any of the old formats works (ie.. either "if" statement below):
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test "${0#-}" != sh && test -r /etc/bash/bashrc; then
#if test "$BASH" -a "$PS1" -a -z "$POSIXLY_CORRECT" -a "${0#-}" != sh -a -r /etc/bash/bashrc; then
. /etc/bash/bashrc
fi
i cant make out why it's not working on the new version however, any ideas?