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
Actually the lack of the "waiting for data" message in this case is by design. See #337. The message can be made to appear by setting LESS_DATA_DELAY to a small number (less than 200 in this case). The inconsistency is arguably a problem in the case of viewing a file, in which it's reasonable to argue that the message should NOT appear, similar to the behavior for a pipe. The fact that the message does appear is due to the behavior of poll() which always returns POLLIN for a regular file, even if you are at EOF and no data is actually readable.
Steps to reproduce:
i=0; while :; do echo $i; let i=$i+1; sleep .2; done > file &
.less file
.F
.i=0; while :; do echo $i; let i=$i+1; sleep .2; done | less
.F
.Expected behavior:
A "Waiting for data" message should appears as in the case of viewing a regular file.
Actual behavior:
No "Waiting for data" message is visible.
The text was updated successfully, but these errors were encountered: