After upgrading sys-apps/less to 452, my man reader (sys-apps/man-db-2.6.3) is kind of broken: % man less There is no -l option ("less --help" for help) - (press RETURN)
(downgrading to less 451 fixes the issue)
I can confirm this. In addition, a temporary workaround is to use `man something | less'.
I also confirm this. Although first it complains "There is no -l option ("less --help" for help)", but if one presses enter , man page is shown.
the -P option in $LESS is supposed to stop when it hits a $, but it seems that logic was broken as part of reworking to support metacharacters $ echo hi | LESS='-Pm Manual$' less There is no -l option ("less --help" for help)
*** Bug 439522 has been marked as a duplicate of this bug. ***
i've e-mailed the upstream maintainer. let's see if we hear anything back.
At 8 Nov 2012 less-456 released with: This version changes option string parsing to avoid unnecessary incompatibility with previous versions of less. Maybe this release fixes this bug.
should be all set now in the tree; thanks for the report! Commit message: Version bump to fix -Pm handling http://sources.gentoo.org/sys-apps/less/less-456.ebuild?rev=1.1