Closed
Description
Issue Description
When reading from a pipe and repeatedly pressing space at EOF, less
exits with
status code 2 if both --quit-on-intr
and --quiet
options are used and the
displayed content does not fit in one screen.
Steps to Reproduce
- Run this docker command (
alpine:edge
usesless
version678-r0
1;
alpine:latest
uses668
)
docker run --interactive --tty --rm \
-e LESS='--quit-on-intr --quiet' \
alpine:edge sh -c 'apk add less;less --version; seq 500 | less'
- Scroll to end of file using space key
- Continue holding space key at EOF
Observed Behavior
less
exits with status code 2 after several space key presses at EOF.
Expected Behavior
less
should remain at EOF without exiting, as in previous versions.
Regression Information
- First appeared in v678
- Bisected to commit: de3e84f
Footnotes
Metadata
Metadata
Assignees
Labels
No labels