Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash users created before pr4334 no longer have scripts from ~/.bashrc.d loaded #5052

Open
TraceyC77 opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@TraceyC77
Copy link
Contributor

A bug was fixed in this PR which has caused errors for bash users

The files in ~.bashrc.d had been incorrectly sourced for all shells from /usr/share/defaults/etc/profile
That had caused errors in other shells.
Unfortunately, correcting this means that existing users no longer have ~.bashrc.d sourced by /usr/share/defaults/etc/profile.

New users created after this change will have the scripts sourced normally from the files in skel

Come up with a one-off fix for users who existed before that change

Workaround for existing users

Add this to ~/.bashrc

# User specific bash aliases and functions
if [ -d ~/.bashrc.d ]; then
    for rc in ~/.bashrc.d/*; do
        if [ -f "$rc" ]; then
            . "$rc"
        fi
    done
    unset rc
fi
@github-project-automation github-project-automation bot moved this to Triage in Solus Feb 14, 2025
@TraceyC77 TraceyC77 self-assigned this Feb 14, 2025
@TraceyC77 TraceyC77 moved this from Triage to Ready in Solus Feb 14, 2025
@TraceyC77 TraceyC77 added the Bug Something isn't working label Feb 14, 2025
@TraceyC77 TraceyC77 added this to the Solus 4.8 Epoch milestone Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Ready
Development

No branches or pull requests

1 participant