Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439422 - sys-apps/less-452: parsing of -Pm in $LESS no longer works
Summary: sys-apps/less-452: parsing of -Pm in $LESS no longer works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 439522 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-23 16:16 UTC by Nikolaj Šujskij
Modified: 2012-11-09 18:10 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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