Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] filesystem package upgrade - /etc/profile broken? (Read 618 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] filesystem package upgrade - /etc/profile broken?

I noticed a change in package filesystem:
https://gitea.artixlinux.org/artixlinux/packages/commit/3cfb01a53cc20a724954f8450f3b9a3e975fac31
specifically at line 31
Code: [Select]
# 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
Code: [Select]
# 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):

Code: [Select]
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?

Re: filesystem package upgrade - /etc/profile broken?

Reply #1
This is my fault, I pushed a fixed filesystem package in gremlins.

Overlooked the wrong path.

Code: [Select]
test -r /etc/bash.bashrc


 

Re: filesystem package upgrade - /etc/profile broken?

Reply #2
hah didnt even notice that, sometimes we look to hard at what's right in front of us  :D

new gremlins packaged verified working, thanks!