Repository navigation
Conversation
BASH_ENV causes all non-interactive shells called via eg. /etc/bashrc to remove the rc-file before the main shell gets to run it. Completion scripts will often do this. Fixes NixOS#976.
Merged
Member
|
Will incorporate this into the c++ rewrite if @edolstra likes the change. |
Member
|
|
Member
|
Yes |
|
What is the correct way to try this patch under NixOS? I'm facing #1043 and would like to see if your patch solves my problem. Thanks. |
Author
|
Not completely sure how the correct way is, but a hacky way is to copy |
Member
|
@DamienCassou You should be able to use overrideDerivation to add a |
Member
|
@edolstra I will incorporate this into nix-build-c++ (and backport to perl on 1.11-maintenance) in a few days barring objections |
Member
|
Sure, sounds good. |
Ma27
pushed a commit
to Ma27/nix
that referenced
this pull request
Mar 8, 2026
…cannot be setup Fixes NixOS#1034 Change-Id: Ic65ef955c4eb44766926e9b3ef4dcb4b94820a16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BASH_ENVcauses all non-interactive shells called via eg. /etc/bashrc toremove the rc-file before the main shell gets to run it. Completion
scripts will often do this. Fixes #976.
Looking at the blame information it seems that there's no reason
$ENV{BASH_ENV} = $rcfilewould cause trouble if removed. It was introduced to support the--commandflag, but a later commit makes non-interactive scripts run the rcfile directly, ie.bash $rcfile.The same bug is present in the c++ rewrite I believe.