Open NightMachinery opened 6 years ago
What is this upper
command?
It's just the example from the docs, converts a string to uppercase. I can see that it works before the new prompt shows itself.
On Thu, Mar 29, 2018 at 5:42 PM, Jakub Dundalek notifications@github.com wrote:
What is this upper command?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dundalek/closh/issues/68#issuecomment-377230696, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--rUtYOeVoQmsRmxqESELu_zdMuCaks5tjN3XgaJpZM4S_Vc2 .
@dundalek
(defcmd upper clojure.string/upper-case)
I see, it is indeed a bug. However, it is not caused by powerline, it is just a bug in the pipeline implementation. I will look into it when I have some more time.
After some digging it really seems to be caused by a combination of readline+powerline. If the last line of the output does not end with newline, the prompt gets placed on the same line, therefore "eating" the line. The simplest case to reproduce is echo -n x
. The bug does not happen with the default plain prompt.
As you see, the prompt is eating a line from stdout:![image](https://user-images.githubusercontent.com/36224762/38055297-8b0a146e-32ee-11e8-9016-43993515778f.png)
upper -u | cat
My .powerline-shell.json: