Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672272

Summary: sys-apps/baselayout-2.6: aliases from /etc/bash/bashrc override /etc/profile.d/*
Product: Gentoo Linux Reporter: Michael Moon <triffid.hunter>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED NEEDINFO    
Severity: normal CC: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Moon 2018-11-30 06:32:24 UTC
I have a bunch of configuration for my users' shells in /etc/profile.d/

After a recent update, I noticed that 'ls' output looked different so I went digging as to why this had suddenly changed without me changing it.

It seems that /etc/profile was updated with baselayout-2.6, and now /etc/profile.d/ is sourced *before* /etc/bash/bashrc, with the effect that the latter overrides my aliases.

I edited /etc/profile to grab /etc/profile.d/ *after* /etc/bash/bashrc and everything now works as expected.

Should this be fixed upstream, or are my expectations wrong?
Comment 1 William Hubbs gentoo-dev 2020-02-08 20:54:36 UTC
The aliases are defined only for bash shells.
Have you tried overriding them in /etc/bash/bashrc.d?
Let me know if that works.
Comment 2 William Hubbs gentoo-dev 2023-01-26 17:05:38 UTC
I am closing this due to no response from the reporter.