Solved `less` bug

Screenshot_20240626_182326.png
I run `zfs | less` and it enters less showing the end of the output (first picture) then already inside less when I press the up-arrow to see the top of the zfs command output it shows nothing (second picture). The same behavior happens in the ttyv system console btw. It's a problem with less, because I tested with other commands like `camcontrol | less` and it fails the same way. EDIT: It does work when I pipe dmesg to less though.
Screenshot_20240626_182559.png
 
View attachment 19365 I run `zfs | less` and it enters less showing the end of the output (first picture) then already inside less when I press the up-arrow to see the top of the zfs command output it shows nothing (second picture). The same behavior happens in the ttyv system console btw. It's a problem with less, because I tested with other commands like `camcontrol | less` and it fails the same way. EDIT: It does work when I pipe dmesg to less though.
View attachment 19366

It's a problem between less and stderr:
Redirect stderr to stdout (sh/bash/zsh):
Code:
zfs 2>&1 | less
 
Back
Top