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
Printing output when resizing terminal window with a git prompt #78
Comments
|
Thank you! I could finally reproduce the problem with the following simple # bashrc
source 3ximus.dotfiles/.bash/git-prompt.sh
source 3ximus.dotfiles/.bash/prompts/prompt_7.sh
source ~/.mwg/src/ble.sh/out/ble.shNow I can narrow down the problem at my side, so I think I can fix it soon! |
|
I got the following minimal test case that reproduces the job message. It seems Bash reports the forked processes in a trap handler as terminated jobs by the command # bashrc
trap '(true); jobs' WINCHI don't know if this is the intended behavior of Bash or just a bug, but it reproduces in all the Bash versions I tried (i.e., 3.0-5.1). I'll think about how we can work around this Bash behavior. |
Yeah, this seems to solve it. But I don't quite get it, so by trapping window resize with a call to jobs it doesn't display forked processes anymore? Shouldn't it do the opposite and actually display background processes after resizing? |
Oh, wait... I actually meant a different thing. The above setting was just a minimal reproducer of the messages and intended to be used without $ bash --rcfile <(echo "trap '(true); jobs' WINCH")and you will get job messages for But, yes, I now confirmed that this actually solves the problem when used with
Actually, I'm not sure if this solution with |
|
I added a workaround bc4735e. Hope it works |
|
Yup its working fine... |
|
Thank you for checking!
Actually, I used a different approach in bc4735e to solve the problem. Now it seems the workaround works, so there is no longer a problem with Thanks!! |
Hi, I'm back again :D
I find the reason of the problem I mentioned the other day.
It turns out its when some resizing happens on the terminal while inside a git repository. Here is a gif of the issue:
Also I noticed that if i detach and reattach the messages are different and might bring you some insight into the issue:
My prompt gets generated with this script https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
I don't know if it has something to do with it, but it doesn't happen in normal bash, so I'm guessing it is a problem with ble.sh
Cheers
The text was updated successfully, but these errors were encountered: