Skip to content

rez-env <package> in .bashrc results in infinite loop #1480

Discussion options

You must be logged in to vote

Hi @daveoy ! rez-env creates shells. So your bashrc runs rez-env, which creates a shell, which sources your bashrc, which runs rez-env, etc.

You could try to use /.bash_profile instead of bashrc. I think this will fix your problem. You could also check to see if you are already in a rez environment by checking any of the Rez standard environnement variables and only running rez-env when required.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daveoy
Comment options

Answer selected by daveoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
shell Shell related issues rez-env
2 participants