-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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-it emits bashdb error without bashdb installed #992
Comments
It looks like this is related to this line: https://github.com/Bash-it/bash-it/blob/master/lib/preexec.bash#L122 shopt -s extdebug > /dev/null 2>&1 References:
Skimming through these, it looks like this error is caused by the above line on specific versions of Bash. The issues describe it in the context of iTerm2, which uses a similar preexec integration script. Not sure how to fix it - the above links contain a couple of potential workarounds, but I don't have a system to test this... |
I can test if a solution can be sussed out from those threads. The only clear workaround I see is checking if bashdb is installed in the preexec_install() function before setting the DEBUG trap on L130. Installing a VM with CentOS 7.2 and then bash-it exhibits the same behavior. |
It looks as though another potential could be that a failed check for bashdb could run |
There is an interesting article on Season of Code with a description of how the DEBUG trap and PROMPT_COMMAND can be employed to emulate zsh's preexec hook. The page notes that a PS0 variable patch that simplified this was accepted into Bash 4.4. How should bash-it handle this?
|
Additionally, I am not sure that the current implementation is working as expected. It looks as though the preexec_invoke_exec hook is being executed three times after the command is invoked due to the pipelined command |
I have this issue on KDE Neon What's the best way to remove this? |
hey @nshiell |
Hi, I get this on CentOS 7 using Bash 4.2.46(2)-release using the latest version of bash-it. |
seems like the solution is to install Feel free to reopen if it does not help |
Same here, on Mac: ./blah.sh: /opt/homebrew/Cellar/bash/5.2.15/share/bashdb/bashdb-main.inc: No such file or directory I believe the issue was: #!/bin/bashset -euo pipefailI changed it to #!/bin/bash and the shebang worked. |
Just pulled from master and now I'm seeing this error when launching bash:
I'm on Red Hat Enterprise Linux Server release 7.3 (Maipo).
bashrc.txt
bash_profile.txt
bash-itplugins.txt
The text was updated successfully, but these errors were encountered: