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
IFS='*' freezes bash #52
Comments
|
Reproduced, but I'm not sure why you'd do that? |
|
To be honest, no reason at all. I was just thinking of ways to break my own scripts (and making them fool-proof in the process), and ended up with a frozen shell.. But I can think of a hypothetical reason, splitting a *-delimited string: |
|
This seems to be a bug in bash ( https://lists.gnu.org/archive/html/bug-bash/2016-07/msg00004.html ), but I think bash-completion could at least print an error instead of looping infinitely. The long-term solution would be implementing cleanly controllable completion environment. |
|
If someone wants to submit a clean, minimal patch that works around this, I can have a look, but honestly I'm not too keen on spending much time at all for such a corner case especially if it's caused by a bash bug. |
|
This was fixed in Bash. Closing. |
If you set
IFS='*'then try tab completion, bash freezes and uses 100% CPU. The only way to stop it is kill -9.I'm using Fedora 24 and bash-completion 2.3.
The text was updated successfully, but these errors were encountered: