Debian Bug report logs - #940293
less: with a pipe, [End] + Ctrl-C sends back to the beginning of the file

version graph

Package: less; Maintainer for less is Milan Kupcevic <[email protected]>; Source for less is src:less (PTS, buildd, popcon).

Reported by: Vincent Lefevre <[email protected]>

Date: Sun, 15 Sep 2019 10:51:02 UTC

Severity: normal

Tags: upstream

Found in version less/551-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Milan Kupcevic <[email protected]>:
Bug#940293; Package less. (Sun, 15 Sep 2019 10:51:04 GMT) (full text, mbox, link).


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).


Message #5 received at [email protected] (full text, mbox, reply):

From: Vincent Lefevre <[email protected]>
To: Debian Bug Tracking System <[email protected]>
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)



Added tag(s) upstream. Request was from Milan Kupcevic <[email protected]> to [email protected]. (Wed, 01 May 2024 02:03:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 15:28:51 2025; Machine Name: buxtehude

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.