bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grep -H option bug


From: Tony Abou-Assaleh
Subject: Re: Grep -H option bug
Date: Fri, 3 Feb 2006 14:10:45 -0400 (AST)

I confirm that -H produces file names regardless of the presence of -h
before or after, in the CVS version.

I'm not sure if this behaviour is by design or a bug.

TAA

-----------------------------------------------------
Tony Abou-Assaleh
Lecturer, Computer Science Department
Brock University, St. Catharines, ON, Canada, L2S 3A1
Office: MC J215
Tel:    +1(905)688-5550 ext. 5243
Fax:    +1(905)688-3255
Email:  address@hidden
WWW:    http://www.cosc.brocku.ca/~taa/
----------------------[THE END]----------------------

On Thu, 2 Feb 2006 address@hidden wrote:

> Hi,
>
> I believe I found a bug in grep. I have version 2.5.1. Here is the
> problem: normally, if you specify opposite options together (like -l and
> -L) or repeat options with arguments (like --label), the last one is the
> effective one. This is not the case with the -h and -H options for grep.
> If -H is given, the file name is displayed even if a -h is given after
> it. This is contrary to the generally expected behavior described above.
> Can you please confirm if this is a bug?
>
> Thanks,
> Jacob
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]