Subject: bin/36062: zegrep -h doesn't work
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <root@garbled.net>
List: netbsd-bugs
Date: 03/23/2007 16:05:01
>Number: 36062
>Category: bin
>Synopsis: zegrep -h doesn't work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 23 16:05:01 +0000 2007
>Originator: Tim Rightnour
>Release: NetBSD 3.0
>Organization:
>Environment:
System: NetBSD polaris.garbled.net 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
If you try to run zegrep -h foo file*, regardless of the -h option, zegrep
(and presumably zgrep too) still prints the filenames of all the searched files
at the head of each line. This is problematic when trying to write shell
scripts or port existing ones.
From what I can tell by reading other scripts, other OS's with this script do
not behave this way.
>How-To-Repeat:
zegrep -h foo file*
>Fix:
It's probably how we are calling the final grep. Not sure.
>Unformatted: