Debian Bug report logs - #940288
less: with a pipe, the line numbers can artificially be turned off after Ctrl-C

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:21: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#940288; Package less. (Sun, 15 Sep 2019 10:21: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:21: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, the line numbers can artificially be turned off after Ctrl-C
Date: Sun, 15 Sep 2019 12:17:28 +0200
Package: less
Version: 551-1
Severity: normal

Run the following command:

  ( trap '' INT; while true; do echo foo; done; ) | less

Then type /w [Return] to search for "w" (there isn't any match).
And type Ctrl-C to abort. One gets:

  Pattern not found  (press RETURN)

Then type [End] to go to the end, but since this is an infinite loop
here[*], this will hang. Type Ctrl-C to abort. One gets:

  Line numbers turned off  (press RETURN)

while there is no reason to turn the line numbers off. For instance,
one does not get this issue with just several aborted searches or with
just several aborted [End].

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:05 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 16:00:38 2025; Machine Name: bembo

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.