-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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 sources /etc/bashrc #16907
Comments
@FRidh -- what feedback is needed? |
Related: |
IIRC, this is to ensure that the environment is properly initialised in all cases on NixOS (including e.g. when logging in via |
Are there any updates to this issue, please? |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
To add to this: When launching bash from inside |
Nixpkgs software still follows their system-wide configuration semantics. Using Nixpkgs' bash outside of NixOS leads to unexpected side-effect, but those side-effects are not exclusive to
I believe this issue can be closed under this understanding. Usage of The issues this may cause should be handled where it happens. If this is wrong, feel free to comment and detail why this should be re-opened. (Or re-open yourselves with explanation if you have the ability to do so.) |
@samueldr Should I open an issue for NixOS' /etc/bashrc then, or are you saying "this is bash's issue"? |
@buffet: yes, an issue dedicated to this problem, with the details about how you have determined this is caused by the It sounds like there is a problem indeed with what you were observing, but the solution is unlikely to be "prevent bash from reading It could also be some other more nuanced issue with your system configuration, so precise steps in reproduction would be really helpful. (Do ping me, and cross-reference this issue.) |
Time to figure out what I was doing 1.5 years ago... |
Issue description
Why is bash built with
by default? The reason I ask is that 1) it reduces purity, and 2) I have nix installed in a cluster environment with no root access, and their /etc/bashrc pollutes my environment -- for example it sets LD_LIBRARY_PATH, which in turn breaks packages such as sed and coreutils (see
errors below).
Reproducible Steps
Workarounds are:
Errors caused by invasive /etc/bashrc
The text was updated successfully, but these errors were encountered: