Red Hat Bugzilla – Bug 122847
+ metachar not ed compatible
Last modified: 2013-07-02 19:00:38 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
Less(1) claims to be ed(1) compatible in the man page, as one would
expect from most Unix utilites except for Awk, Egrep, Perl, etc., but
in Less + is used as a metacharacter unescaped, so matching a literal
+ requires the pattern be \+. This is the opposite of ed, and is
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. man bash
Actual Results: Taken to the first instance of the literal ":" in the
bash(1) manual page (the "OPTIONS" section).
Expected Results: Taken to the first instance of the literal ":+" in
the bash(1) manual page (the "Use Alternate Value" section).
A quick look at the Less home page suggests it plugs into many
different regex libraries.
It looks like the version of Less distributed with Red Hat/Fedora uses
enhanced regular expressions rather than basic regular expressions.
If this is the case, the manual page must be updated to reflect this.
This is now fixed by the less-392.
man page now states that:
The pattern is a regular expression, as recognized by the regular expression
library supplied by your system.