You are not logged in.

#1 2021-03-04 20:56:24

Felixoid
Member
Registered: 2012-05-23
Posts: 33

[SOLVED] lesspipe.sh breaks forward mode

Hello.

For few years I struggled with `less` because it lacks the most killer feature that works on the Debian servers I operate.

The Debian uses another script, it's here https://sources.debian.org/src/less/458 … /lesspipe/. With this script forward mode works pretty well. It jumps directly to the EOF and shows the lines appearing in the file. Log for example.

But the script that is used in archlinux https://github.com/archlinux/svntogit-c … pipe/trunk loads the full file (because it definitely shows every line) and then stops to follow the new data.

The difference between plain less and lesspipe.sh is visible in the screencast https://asciinema.org/a/396774

What is the proper way to solve it now? The lesspipe is quite a necessary thing to have a way of reading the compressed logs. But it screws the crucial part of less.

Last edited by Felixoid (2021-03-08 17:45:14)

Offline

#2 2021-03-04 21:07:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,343

Re: [SOLVED] lesspipe.sh breaks forward mode

This is a functionality of less that should be irrelevant towards the used wrapper script for other formats, press Shift+F to enable less' follow mode

Oh wait I misread that, sounds weird

Last edited by V1del (2021-03-04 21:15:26)

Offline

#3 2021-03-05 21:27:58

Felixoid
Member
Registered: 2012-05-23
Posts: 33

Re: [SOLVED] lesspipe.sh breaks forward mode

Maybe, it's better to report a bug directly to https://bugs.archlinux.org/ ?

Offline

#4 2021-03-05 22:20:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,552

Offline

#5 2021-03-06 11:10:25

Felixoid
Member
Registered: 2012-05-23
Posts: 33

Re: [SOLVED] lesspipe.sh breaks forward mode

Hey seth, thank you very much for directing me into the right place. I have misinterpreted the content of https://github.com/archlinux/svntogit-c … pipe/trunk and thought, that lesspipe.sh is unmodified for 12 years w/o taking a look into PKGBUILD source.

Offline

#6 2021-03-08 17:44:58

Felixoid
Member
Registered: 2012-05-23
Posts: 33

Re: [SOLVED] lesspipe.sh breaks forward mode

So, I'll put the solution here too. `less` won't respect LESSOPEN when `-L` argument is passed.

Offline

Board footer

Powered by FluxBB