Re: less: extra entries for lesspipe
Hi,
>>"Darren" == Darren Stalder <torin@daft.com> writes:
Darren> Uh, Manoj, if you don't want less to interpret things for,
Darren> just don't use lessopen. If you still want to use it, you can
Darren> just edit the lessopen script.
I know that. The accepted way of using less used to be to use
a upstream filter. Right now, it is done like so:
______________________________________________________________________
__> printenv | grep -i less
PAGER=less -ciM
LESSOPEN=|lessopen %s
LESS=-ciMP?f%f :std in .?n?m(file %i of %m) ..?ltline %lt :byte %bB?s/%s ..?e(END) ?x- Next\: %x.:?pB%pB\%..%t
LESSCHARSET=latin1
__> eval $(lesspipe)
__> printenv | grep -i less
PAGER=less -ciM
LESSCLOSE=/usr/bin/lesspipe '%s' '%s'
LESSOPEN=| /usr/bin/lesspipe '%s'
LESS=-ciMP?f%f :std in .?n?m(file %i of %m) ..?ltline %lt :byte %bB?s/%s ..?e(END) ?x- Next\: %x.:?pB%pB\%..%t
LESSCHARSET=latin1
______________________________________________________________________
See how the distribution now uses lesspipe?
I am bemoaning the fact that lesspipe is not directly usable
by me anymore, since all the stuff got added to it.
manoj
--
Aren't you glad you're not getting all the government you pay for
now?
Manoj Srivastava <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: