Skip to content

Bug Report: Unexpected Exit When Scrolling at EOF with Pipes in v678 #628

Closed
@LangLangBart

Description

@LangLangBart

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

  1. Run this docker command (alpine:edge uses less version 678-r01;
    alpine:latest uses 668)
docker run --interactive --tty --rm \
  -e LESS='--quit-on-intr --quiet' \
  alpine:edge sh -c 'apk add less;less --version; seq 500 | less'
  1. Scroll to end of file using space key
  2. 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

  1. https://pkgs.alpinelinux.org/packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions