You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed this again, but it has happened in the past as well: I am inside a directory and run cat on a file:
(using a fancy prompt like agnoster)$ cat file
line 1
(fancy prompt again)
Now, if I run cat again using a less fancy prompt, I get this:
(less fancy prompt like minimal)$ cat file
line 1
line 2
(less fancy prompt again)
Expected behavior
I expect to see all lines of the file.
Actual behavior
The last line is missing from the output
It looks like some of the prompts have trouble working with output that does not end with a newline character.
Steps to Reproduce
Create a file containing multiple lines of text, make sure that the last line does not have a newline character at the end
Switch to a prompt like agnoster, powerline or fade (I did not test all prompts!)
run cat on the file and see that the last line is not printed
Description
I just noticed this again, but it has happened in the past as well: I am inside a directory and run
cat
on a file:Now, if I run
cat
again using a less fancy prompt, I get this:Expected behavior
I expect to see all lines of the file.
Actual behavior
The last line is missing from the output
It looks like some of the prompts have trouble working with output that does not end with a newline character.
Steps to Reproduce
cat
on the file and see that the last line is not printedVersions
The text was updated successfully, but these errors were encountered: