← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2121830] Re: Keystrokes missing when using less to read a pipe

 

Important information: the problem doesn't happen with every pipe.
I redirected the output of `sudo dmesg` command to a file, and then used less in that file, but the problem didn't occur.

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to less in Ubuntu.
https://bugs.launchpad.net/bugs/2121830

Title:
  Keystrokes missing when using less to read a pipe

Status in less package in Ubuntu:
  New

Bug description:
  I have a pretty peculiar problem. I execute `sudo dmesg|less` and when
  I try to search something in the result, using /, I got missed
  keystrokes when I'm typing the word I want to search for, like
  'iwlwifi'.

  A simple `sudo dmesg|less` doesn't work as should, but `sudo
  dmesg|gnustdbuf -i0 -o0 -e0 less` works, no missing keystrokes.

  Other command that has problems is `sudo dmesg|gnustdbuf -oL -eL
  less`.

  I found out if I become root using sudo and type `dmesg|less`, the
  problem doesn't occur, so maybe it's something related to pipe
  buffering in the normal user mode, but root user doesn't have such
  problem.

  I'm using Zsh, but it also happens with Bash, when I'm not root and
  need to use sudo.

  At first I thought it was a kernel problem, but I tested with 6.17,
  6.16, 6.15 and 6.14 (I'm using Questing), so maybe it's related to the
  less version, pending test.

  Anyone can thing anything related to buffering?

  This is the content of my config env variable.

  ➜ echo $LESS
  j.25MqRSW#.25

  Thanks,

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/less/+bug/2121830/+subscriptions



References