GNU bug report logs - #17086
Reg : Bug in Grep command

Previous Next

Package: grep;

Reported by: Senthil Kumar <kksenthilkumar79 <at> gmail.com>

Date: Mon, 24 Mar 2014 15:06:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17086 in the body.
You can then email your comments to 17086 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#17086; Package grep. (Mon, 24 Mar 2014 15:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Senthil Kumar <kksenthilkumar79 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 24 Mar 2014 15:06:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Senthil Kumar <kksenthilkumar79 <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: Reg : Bug in Grep command
Date: Mon, 24 Mar 2014 19:10:53 +0530
[Message part 1 (text/plain, inline)]
Dear Person,

I have found a bug in the below environment and using grep along with REGEX.

*My aim*: To search a names having "Mr.*" and "Mrs.*" in f1.dat file

$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
Oracle Linux Server release 5.8
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

*$ cat f1.dat*
*Output:*
MRavi
Mr.Kumar
Mrs.Linda
Mrs.Lily
Mr.Gul
Mr.Tent
Mrs.Forrest
Mr.Hammer

*$ grep -r "Mr.*" f1.dat*
*Output:*
Mr.Kumar
Mrs.Linda
Mrs.Lily
Mr.Gul
Mr.Tent
Mrs.Forrest
Mr.Hammer

*$ grep -r "Mrs.*" f1.dat*
*Output:*
Mrs.Linda
Mrs.Lily
Mrs.Forrest

I see the command (*$ grep -r "Mr.*" f1.dat*) is getting retrieved all
names having both

*Mr. and Mrs.*
please do let me know is this defect ? Hoping to get an revert mail on this.

-- 

* Thanks & Regards,KK Senthil Kumar*
[Message part 2 (text/html, inline)]

Information forwarded to bug-grep <at> gnu.org:
bug#17086; Package grep. (Tue, 25 Mar 2014 17:25:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Senthil Kumar <kksenthilkumar79 <at> gmail.com>
Cc: bug-grep <at> gnu.org
Subject: Re: bug#17086: Reg : Bug in Grep command
Date: Wed, 26 Mar 2014 01:01:04 +0900
Hi Senthil,

(out of bugs, only list)
I don't seem that it's a grep's bug.  
Is the thing which you want to do `grep -r "Mr\.*" f1.dat*' and
`grep -r "Mrs\.*" f1.dat*'?                   ^
             ^
Norihiro

On Mon, 24 Mar 2014 19:10:53 +0530
Senthil Kumar <kksenthilkumar79 <at> gmail.com> wrote:

> Dear Person,
> 
> I have found a bug in the below environment and using grep along with REGEX.
> 
> *My aim*: To search a names having "Mr.*" and "Mrs.*" in f1.dat file
> 
> $ cat /etc/*-release
> Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
> Oracle Linux Server release 5.8
> Red Hat Enterprise Linux Server release 5.8 (Tikanga)
> 
> *$ cat f1.dat*
> *Output:*
> MRavi
> Mr.Kumar
> Mrs.Linda
> Mrs.Lily
> Mr.Gul
> Mr.Tent
> Mrs.Forrest
> Mr.Hammer
> 
> *$ grep -r "Mr.*" f1.dat*
> *Output:*
> Mr.Kumar
> Mrs.Linda
> Mrs.Lily
> Mr.Gul
> Mr.Tent
> Mrs.Forrest
> Mr.Hammer
> 
> *$ grep -r "Mrs.*" f1.dat*
> *Output:*
> Mrs.Linda
> Mrs.Lily
> Mrs.Forrest
> 
> I see the command (*$ grep -r "Mr.*" f1.dat*) is getting retrieved all
> names having both
> 
> *Mr. and Mrs.*
> please do let me know is this defect ? Hoping to get an revert mail on this.
> 
> -- 
> 
> * Thanks & Regards,KK Senthil Kumar*





Information forwarded to bug-grep <at> gnu.org:
bug#17086; Package grep. (Tue, 25 Mar 2014 17:28:01 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Senthil Kumar <kksenthilkumar79 <at> gmail.com>
Cc: bug-grep <at> gnu.org
Subject: Re: bug#17086: Reg : Bug in Grep command
Date: Wed, 26 Mar 2014 00:34:14 +0900
Hi Senthil,

(out of bugs, only list)
I don't seem that it's a grep's bug.  
Is the thing which you want to do `grep -r "Mr\.*" f1.dat*' and
`grep -r "Mrs\.*" f1.dat*'?                   ^
             ^
Norihiro

On Mon, 24 Mar 2014 19:10:53 +0530
Senthil Kumar <kksenthilkumar79 <at> gmail.com> wrote:

> Dear Person,
> 
> I have found a bug in the below environment and using grep along with REGEX.
> 
> *My aim*: To search a names having "Mr.*" and "Mrs.*" in f1.dat file
> 
> $ cat /etc/*-release
> Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
> Oracle Linux Server release 5.8
> Red Hat Enterprise Linux Server release 5.8 (Tikanga)
> 
> *$ cat f1.dat*
> *Output:*
> MRavi
> Mr.Kumar
> Mrs.Linda
> Mrs.Lily
> Mr.Gul
> Mr.Tent
> Mrs.Forrest
> Mr.Hammer
> 
> *$ grep -r "Mr.*" f1.dat*
> *Output:*
> Mr.Kumar
> Mrs.Linda
> Mrs.Lily
> Mr.Gul
> Mr.Tent
> Mrs.Forrest
> Mr.Hammer
> 
> *$ grep -r "Mrs.*" f1.dat*
> *Output:*
> Mrs.Linda
> Mrs.Lily
> Mrs.Forrest
> 
> I see the command (*$ grep -r "Mr.*" f1.dat*) is getting retrieved all
> names having both
> 
> *Mr. and Mrs.*
> please do let me know is this defect ? Hoping to get an revert mail on this.
> 
> -- 
> 
> * Thanks & Regards,KK Senthil Kumar*

--
 田中 紀洋 (Norihiro TANAKA)
 E-mail : noritnk <at> kcn.ne.jp





Added tag(s) notabug. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 25 Mar 2014 18:54:02 GMT) Full text and rfc822 format available.

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 25 Mar 2014 18:56:01 GMT) Full text and rfc822 format available.

Notification sent to Senthil Kumar <kksenthilkumar79 <at> gmail.com>:
bug acknowledged by developer. (Tue, 25 Mar 2014 18:56:02 GMT) Full text and rfc822 format available.

Message #18 received at 17086-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>, 
 Senthil Kumar <kksenthilkumar79 <at> gmail.com>
Cc: 17086-done <at> debbugs.gnu.org
Subject: Re: bug#17086: Reg : Bug in Grep command
Date: Tue, 25 Mar 2014 11:55:03 -0700
On 03/25/2014 09:01 AM, Norihiro Tanaka wrote:
> I don't seem that it's a grep's bug.

Agreed, and closing the bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 23 Apr 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.