Skip to content
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

[ZSH ONLY] powerline-render error: argument --last-pipe-status: invalid <lambda> value: '0s0' #2229

Open
pcxmac opened this issue Jan 27, 2023 · 0 comments

Comments

@pcxmac
Copy link

pcxmac commented Jan 27, 2023

hello, been using powerline for some years now, so thanks for your work, but I found a bug today while making some scripts which use piped stdin to operate on. In my scripts powerline doesn't have issue with whole formatted strings being passed through a pipe to my script, but it does have a problem with a good file reference, in quotes. Also I can reproduce the issue by doing :

echo "some string" | echo # not a general use case for echo, but it breaks powerline none the less

the error I get is :

usage: powerline-render [-h] [-r MODULE] [-w WIDTH] [--last-exit-code INT]
[--last-pipe-status LIST] [--jobnum INT]
[-c KEY.KEY=VALUE] [-t THEME.KEY.KEY=VALUE]
[-R KEY=VAL] [-p PATH] [--socket ADDRESS]
ext {left,right,above,aboveleft}
powerline-render: error: argument --last-pipe-status: invalid value: '0s0'
usage: powerline-render [-h] [-r MODULE] [-w WIDTH] [--last-exit-code INT]
[--last-pipe-status LIST] [--jobnum INT]
[-c KEY.KEY=VALUE] [-t THEME.KEY.KEY=VALUE]
[-R KEY=VAL] [-p PATH] [--socket ADDRESS]
ext {left,right,above,aboveleft}
powerline-render: error: argument --last-pipe-status: invalid value: '0s0'

the renderer fails to post a prompt after that, but typing in break, or any kind of text (empty strings don't work) then pressing enter seems to snap it out of that bad state, and the renderer comes back to life.

If I get time I will work on a pull request, but this behavior is not exhibited by a standard zsh shell. The bash version does not have this issue.

*zsh = 5.9 ... Also, <lambda> should be between invalid and value, but github doesn't like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant