Bug 963523

Summary: search:begin-of-word,end-of-word (eg /\<man\>) dont work in rhel6 less
Product: Red Hat Enterprise Linux 6 Reporter: gregrwm <rhbugzi>
Component: lessAssignee: Fridolín Pokorný <fpokorny>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-16 07:56:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gregrwm 2013-05-16 03:50:35 UTC
Description of problem:  a search such as /\<man\> (containing begin-of-word and end-of-word) doesn't work in rhel6 less.

Version-Release number of selected component (if applicable):  less 436 10.el6 x86_64

How reproducible:  always

Steps to Reproduce:
1.  man man
2.  /\<man\>
  
Actual results:  Pattern not found

Expected results:  search should succeed

Additional info:  works fine elsewhere, eg rhel5, and ubuntu precise

Comment 2 Fridolín Pokorný 2013-05-16 07:56:53 UTC
Hi,

thanks for your report! less used in RHEL6 is built with pcre (Perl Compatible
Regular Expressions). If you want to perform such search, you have to
use following regexp:

\bman\b

I am closing this as NOTABUG.