Bug 147527

Summary: count the number of lines which match:
Product: Red Hat Enterprise Linux 2.1 Reporter: Rajeev <nalluri_r>
Component: grepAssignee: Stepan Kasal <kasal>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: shillman
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-19 19:20:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rajeev 2005-02-08 20:12:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
SV1; .NET CLR 1.1.4322)

Description of problem:
 I've aliased words to /usr/share/dict/linux.words.  I then do the 
following two statements and count the number of lines which match:

$ egrep "(.*[aeiou]){7}" words -c
318
$ egrep "([^aeiou]*[aeiou]){7}" words -c 0

Notice, there are 318 matches with the first and none with the second.

 
Second, I run the same pair on my BSD box and get:

$ egrep "(.*[aeiou]){7}" words -c
8357
$ egrep "([^aeiou]*[aeiou]){7}" words -c
8357
 Can you please tell me which one is the correct result.

Thanks,
-Rajeev


Version-Release number of selected component (if applicable):
redhat 9

How reproducible:
Always

Steps to Reproduce:
1.1
2.1
3.1
    

Additional info:

Comment 1 Suzanne Hillman 2005-02-08 22:13:27 UTC
This bug report mentions redhat 9, which is no longer supported, and rhel2.1DE
which was never supported.

That said, it appears to possibly be related to your LANG setting. If your LANG
is  set to en_US.utf8, try setting it to en_US and see if your problem is gone.

Comment 4 RHEL Program Management 2007-10-19 19:20:53 UTC
This bug is filed against RHEL2.1, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products.  Since
this bug does not meet that criteria, it is now being closed.

For more information of the RHEL errata support policy, please visit:
http://www.redhat.com/security/updates/errata/

If you feel this bug is indeed mission critical, please contact your
support representative.  You may be asked to provide detailed
information on how this bug is affecting you.