Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 439422

Summary: sys-apps/less-452: parsing of -Pm in $LESS no longer works
Product: Gentoo Linux Reporter: Nikolaj Šujskij <skrattaren>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: AlphatPC, bugs+gentoo, CasperVector, moonlapse81, slawomir.nizio, vityokster
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nikolaj Šujskij 2012-10-23 16:16:40 UTC
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)
Comment 1 Nikolaj Šujskij 2012-10-23 16:21:56 UTC
(downgrading to less 451 fixes the issue)
Comment 2 Casper Ti. Vector 2012-10-24 11:37:51 UTC
I can confirm this.
In addition, a temporary workaround is to use `man something | less'.
Comment 3 Ivan S. Titov 2012-10-24 13:11:23 UTC
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.
Comment 4 SpanKY gentoo-dev 2012-10-24 16:54:57 UTC
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)
Comment 5 Tim Harder gentoo-dev 2012-10-24 21:40:26 UTC
*** Bug 439522 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2012-10-24 23:16:10 UTC
i've e-mailed the upstream maintainer.  let's see if we hear anything back.
Comment 7 Viktor Yu. Kovalskii 2012-11-09 04:22:01 UTC
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.
Comment 8 SpanKY gentoo-dev 2012-11-09 18:10:14 UTC
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