-
Notifications
You must be signed in to change notification settings - Fork 328
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 +1c
doesn't work when stdin is from terminal
#499
Comments
This seems to be an OpenBSD Issue, or has been resolved by a later commit. I tried it on Debian at commit 70cc6e5, and the behaviour seems consistent.
I'll try on an OpenBSD machine later today and see if I can reproduce. |
Just installed OpenBSD from the amd64/install69.iso into a VM, ran
So the issue is for sure not fixed after 88a87fa. I suspect there is some issue with the way STDIN is being read by the utility on BSD systems (but not Linux). Will take a look at some point, but I'm not terribly familiar with BSD systems so I might not be a great help. |
Thanks for taking the time to reproduce it. I can also take a look, but it might be a few days before I get around to it. I'm not deeply familiar with the quirks of reading, writing and terminals but it could be a learning experience for me. |
From
comparing to using pipe,
comparing to
which means the line |
Running in xterm:
For some reason, in the first case, it's not skipping the "h". The effect is similar with numbers other than 1.
This is
plan9port-20210323
from OpenBSD ports, which should be at commit 88a87faThe text was updated successfully, but these errors were encountered: