Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672272 - sys-apps/baselayout-2.6: aliases from /etc/bash/bashrc override /etc/profile.d/*
Summary: sys-apps/baselayout-2.6: aliases from /etc/bash/bashrc override /etc/profile.d/*
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-30 06:32 UTC by Michael Moon
Modified: 2023-01-26 17:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.