Re: Bug#8111: less package doesn't include LESSOPEN support (was Re: Warning!! PAGER=zless)
On Mon, 17 Mar 1997, Chris Fearnley wrote:
> 'Craig Sanders wrote:'
> >Package: less
> >Version: 321-2
> I'm not sure about this design. There could exist gzip files that
> don't have .gz endings and so on. I think a better approach is to use
> file(1) (and gzip?) to do this. And I sometimes like to pipe .gz files
You could easially add a test at the end of the script for this..
Pipeing still works as well.
> into less. Another bug in your script is that it doesn't support
> uncompressing multiple files and saving marks in each of them and
> hoping back and forth easily. Maybe someone can merge your approach
Just tried less *.gz and :n :p, not a problem, less properly handled this.
> BTW, you don't need the | in your ENV variables.
Yes you do ;> Read the man page. Your method uses temp files, with the
pipe symbol less runs the script and reads it's stdin for the actual
data, if it shows nothing then the file is opened normaly. This is better
because uncompressing/whatever is done in parallel with less's browsing.
Uses more ram though.
I do think that script that was posted earlier should be included in
doc/less/examples, I wrote one exactly like it, it's really really handy
to be able to do 'less blah.deb'!