-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
regression: bat fails to page - will not read from stdin if no file (or -
) specified
#2572
Comments
-
) specified-
) specified
I'm afraid I don't have time to debug the problem but the code in this block looks odd and potentially related: It looks like |
This caused some problems for me as well, a quick bisection shows that the regression was introduced in 57cc0d8 when atty was switched to is-terminal. This seems to have been introduced since the condition
but the current code enables paging if stdin is interactive. |
bat
(no longer) reads fromstdin
if no file or-
is specified. This breaks mygit(1)
workflow.What steps will reproduce the bug?
What happens?
bat
doesn't page - the file is just dumped tostdout
a lacat(1)
.What did you expect to happen instead?
bat
should page the file.How did you install
bat
?$ git clone https://github.com/sharkdp/bat $ cargo install --path .
The text was updated successfully, but these errors were encountered: