Bug 85532 - GREP (regex) broken.
GREP (regex) broken.
Status: CLOSED DUPLICATE of bug 76328
Product: Red Hat Linux
Classification: Retired
Component: grep (Show other bugs)
8.0
All Linux
high Severity high
: ---
: ---
Assigned To: Tim Waugh
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-03 17:48 EST by Need Real Name
Modified: 2006-02-21 13:52 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 13:52:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2003-03-03 17:48:16 EST
Description of problem: Regular expression in grep is misinterpreted/broken. It 
works on FreeBSD. It seems to effect all programs using regular expression.


Version-Release number of selected component (if applicable): grep-2.5.1-4


How reproducible:very


Steps to Reproduce: 
Using file: testgrep.txt
abcXYZ
abcd
XYZ

1. 
Actual results:

grep [A-Z] testgrep.txt   - DOES NOT WORK! Lower case "abcd" should not printed.
abcXYZ
abcd
XYZ

grep [YZ] testgrep.txt        - WORKS!
abcXYZ
XYZ

grep [a-z] testgrep.txt       - DOES NOT WORK! Should not print XYZ
abcXYZ
abcd
XYZ

grep [Y-Z] testgrep.txt       - WORKS!
abcXYZ
XYZ


Expected results: As described above. It works properly on FreeBSD.

Additional info: Probably a broken regex C library routine. As this is a basic 
routine used in so many commands and applications, it is A VERY SERIOUS ERROR.
Comment 1 Mike McLean 2003-03-03 18:08:05 EST


*** This bug has been marked as a duplicate of 76328 ***
Comment 2 Red Hat Bugzilla 2006-02-21 13:52:05 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.