#638182 less: please be more verbose about lesspipe usage in login script

Package:
less
Source:
less
Description:
pager program similar to more
Submitter:
Luca Capello
Date:
2011-08-17 12:09:37 UTC
Severity:
wishlist
#638182#5
Date:
2011-08-17 12:02:49 UTC
From:
To:
Hi there!

The discussion started on the debian-devel@ mailing list:

  <http://lists.debian.org/msgid-search/4E4A258D.6090402%40debian.org>

Here we are.

On sid it has not.  But /etc/skel/.bashrc:23 does ;-)

However, the lesspipe manpage says:

  USAGE
	Just put  one of  the following two  commands in  your login
	script (e.g.  ~/.bash_profile):

	  eval "$(lessfile)"

	or

	  eval "$(lesspipe)"

I think the manpage should:

1) document the full snippet above as the one to be put in login script,
   i.e. with the test as well.

2) be consistent with what Debian ships in /etc/skel/ files, i.e. if the
   snippet is in .bashrc, the manpage should reflect that and not
   suggest .bash_profile.

I do not understand why we need to specify SHELL, however.

Thx, bye,
Gismo / Luca