Skip to content

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Jul 17, 2025

On some systems, the .profile file already sources .bashrc so telling the user to source .profile in their .bashrc creates a loop. Furthermore, given that on some systems the .bashrc is already sourced in the .profile, it makes it more like for users to copy the opam incantation in their .bashrc but forget to remove it from the .profile, leading to a doubling of some environment variables and a loss of track of some of them by opam env (aka. #6455)

Fixes #5819
Fixes #4201
Fixes #3990

On some systems, the .profile file already sources .bashrc so telling the user to source .profile in their .bashrc creates a loop. Furthermore, given that on some systems the .bashrc is already sourced in the .profile, it makes it more like for users to copy the opam incantation in their .bashrc but forget to remove it from the .profile, leading to a doubling of some environment variables and a loss of track of some of them by opam env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant