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: [EMAIL PROTECTED] WWW: http://www.cosc.brocku.ca/~taa/ ----------------------[THE END]---------------------- On Thu, 2 Feb 2006 [EMAIL PROTECTED] 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 > >
