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
powerline splits commands #372
Comments
Powerline does not do anything with your input. Can you provide steps to reproduce starting from |
This happens to me as well using bash with powerline inside of tmux. It only seems to happen after being idle for a long period of time. for example. $ ssh user@hostname try the same command again immediately afterward and it works. |
Hi @jarnett, I originally thought this was a issue caused by powerline, but I am not sure anymore. It is a really annoying bug, and I haven't figured out how to solve it. You are right, it only happens when the session is idle for a while. I face it both in os x and ubuntu, locally and over ssh. |
I just happened upon a way to recreate this issue at will. When running tmux with powerline enabled, if you resize your ssh session window the very next command typed will fail in the way previously mentioned. I tried this with powerline disabled in both tmux and bash and everything worked as expected. with some debugging enabled in bash I see that '_powerline_tmux_set_columns' is executed after a resize, but i'm unsure how this is related. |
Similarly, I can recreate this problem with a split command. Steps to recreate:
Splits command into "ls" and "--color=auto" returning "--color=auto: command not found" Command is executed successfully on second attempt. |
found this link referencing a similar issue: http://comments.gmane.org/gmane.comp.shells.bash.bugs/20136 and made a change to powerline.sh that fixes the problem for me.
instead of:
|
This works for me as well. Thanks. |
Powerline has a workaround now, but it is still a bash bug. Hence INVALID. |
Powerline intermittently splits a command from its arguments, passing them as if they were two separate commands:
This is passing
fossil
to bash, and thendiff -y white\ dist.py
as a separate command. Both fail because they are incomplete.Apart from being a bug. I could envision a few instances where this would be dangerous.
The text was updated successfully, but these errors were encountered: