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

Re: less: extra entries for lesspipe



-----BEGIN PGP SIGNED MESSAGE-----

Manoj Srivastava, in an immanent manifestation of deity, wrote:
>	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?

No, I don't see the difference between "|lessopen %s" and "|/usr/bin/lesspipe '%s'"
considering that lesspipe is a link to lessopen and using the ' protects 
against spaces and special characters.  Could you please elucidate?

>	I am bemoaning the fact that lesspipe is not directly usable
> by me anymore, since all the stuff got added to it.

I'm open to suggestions on how to change it so that everybody is
happy...

What about an environment variable about what items to use/not-use.  I
think a config file would have too much overhead.

Darren
- -- 
<torin@daft.com> <http://www.daft.com/~torin> <torin@debian.org> <torin@io.com>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-800-921-4996
@ Sysadmin, webweaver, postmaster for hire.  C/Perl/CGI programmer and tutor. @
@		     Make a little hot-tub in your soul.		      @

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBNUBTM44wrq++1Ls5AQHfXgQAijfHcL56KONhRECSAM6x2BeE5wmwfa7S
p7QYsCjp8L8CBO5NBnP19vIfuUMMceWkqux3gZK0405a6xpv01YpbBAAGuAbjej0
HlYFhty9swh9jZn6Y8fMO6lJ+fYgEoJyUHXuQSFTWB7P2vcD2WBRi6RwMB+RxA2k
OsOEdG7coAo=
=o3Gk
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: