Acknowledgement sent
to Vincent Lefevre <[email protected]>:
New Bug report received and forwarded. Copy sent to Milan Kupcevic <[email protected]>.
(Sun, 15 Sep 2019 10:51:04 GMT) (full text, mbox, link).
Subject: less: with a pipe, [End] + Ctrl-C sends back to the beginning of the
file
Date: Sun, 15 Sep 2019 12:47:28 +0200
Package: less
Version: 551-1
Severity: normal
Run the following command:
( trap '' INT; while true; do echo foo; done; ) | less -M
Then type one or a few [PageDown], and type [End] to go to the end,
but since this is an infinite loop here[*], this will hang. Type
Ctrl-C to abort. One is back to the beginning of the file, at line 1
(less shows something like "lines 1-59") instead of remaining at
the same position (or going to some higher position). In case of
interrupted [End], less should never go backward.
I can also reproduce this bug with less 481 (Debian/stretch) and 487.
[*] In practice, this can just be a command with a lot of output, but
which hasn't finished yet.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages less depends on:
ii libc6 2.29-1
ii libtinfo6 6.1+20190803-1
less recommends no packages.
less suggests no packages.
-- no debconf information
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.