[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zless?

On Wed, 2004-02-18 at 15:59, Chris Waters wrote:
> On Wed, Feb 18, 2004 at 09:41:37AM -0600, Joe Wreschnig wrote:
> > zmore already uses ${PAGER-more}. I see no reason why zless shouldn't
> > use ${PAGER-less}.
> Possibly because zless relies on setting the $LESSOPEN variable; the
> whole point of zless, it seems to me, is to take advantage of the
> features of less.  
> If you start with zmore and just replace "more" with "less", you end
> up with something that doesn't handle multiple files properly (among
> other things).  And if you start with zless and replace less with
> ${PAGER-less}, you get something that doesn't work unless $PAGER is
> unset or set to "less", which is silly.

Or you end up with the slightly more complex script I just sent an email
to -devel about, that supports LESSOPEN if you're using less, or its own
(zmore-derived) multiple file support if you're not using less.
Joe Wreschnig <piman@debian.org>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: