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
tail -f | grep | bat fails (on Linux)
#2198
Comments
|
What version of The difference seems to be with Just to try another set of systems with differing versions of
I purposely left all of my testing intact, even though the |
|
With 🎉 after some investigation, it seems that |
When working with logs, it's common to
tail -fa log to view it in realtime, and then pipe it togrepfor interesting data.batfails to produce output when feed such a pipe.Steps to reproduce the bug
/var/log/apt/history.logof a Debian system is used in this example, but any log will do.tailto have it:tail -n 1000 -f /var/log/apt/history.log | grep Dateshould give several lines of output.bat, i.e.:tail -n 1000 -f /var/log/apt/history.log | grep Date | bat --paging=never.Result
The output is empty.
Expected result
The output contains the lines observed on step 2.
More investigation
-foption is given totail,batworks as expected. (tail -n 1000 /var/log/apt/history.log | grep Date | bat --paging=neverproduces the expected output)grepis done,batworks as expected. (tail -n 1000 -f /var/log/apt/history.log | bat --paging=neverproduces the expected output)How did you install
bat?Official
debrepo.bat version and environment
Software version
bat 0.21.0 (405e5f7)
Operating system
Linux 5.10.0-14-amd64
Command-line
Environment variables
Config file
Could not read contents of '/home/evgeny/.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/home/evgeny/.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/home/evgeny/.cache/bat' not found
Compile time information
Less version
The text was updated successfully, but these errors were encountered: