-
Notifications
You must be signed in to change notification settings - Fork 9
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
Incompatible with bash_completion from Homebrew #1
Comments
The most recent commit, d0bfcb8, may have fixed this. If not, also try removing the symlink from ~/.profile . I should have a chance to test directly a little later. |
Can't replicate this. But I don't know what your " |
The problem is that the .bashrc_once (or .bashrc_all or .bashrc_script) might spawn another bash process. It has nothing to do with Homebrew. When the second bash is spawned, it runs all the .bashrc_* again, but slips past your PID recursion protection. Try the following: Use a simple script, ~/simplescript
In .bashrc_once, add a call to this script
Now start a new bash session, or run any bash script. It should recursively spawn bash processes (look with "ps a") each with a different PID, of course. I think you can fix this by changing when you set the guard on the .bashrc_once invocation. Replace this:
with this
I don't think there should be a problem with this. If "export BRCD_RANONCE=true" fails, then bashrc_once will never be called, but maybe you've got bigger problems at that point. Thanks for the hard work on this bash_dispatch tool! I love it. |
Update. I don't think it's correct to have the environment variable "run-once" guards in the && chain. I replaced this:
with this:
As I mentioned in the previous comment, you need to set |
This line in .bashrc_once causes new shells to hang.
The text was updated successfully, but these errors were encountered: