'Jason Gunthorpe wrote:' > >On Mon, 17 Mar 1997, Chris Fearnley wrote: > >> 'Craig Sanders wrote:' >> 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.
I guess I shouldn't rely on two year old memories of how things work ;) >> 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. It's been several years since I wrote my script. Maybe less has changed? >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'! Yes, I thought those additions were cool. And I hope to add them to my script. -- Christopher J. Fearnley | Linux/Internet Consulting [EMAIL PROTECTED], [EMAIL PROTECTED] | Design Science Revolutionary http://www.netaxs.com/~cjf | Explorer in Universe ftp://ftp.netaxs.com/people/cjf | "Dare to be Naive" -- Bucky Fuller