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)

Reply via email to