zegrep doesn't obey the -h option breakin a lot of applications

Bug #188365 reported by MikeTheBike
This bug report is a duplicate of:  Bug #215863: zgrep ignores -h grep option. Edit Remove
6
Affects Status Importance Assigned to Milestone
gzip (Ubuntu)
New
Undecided
Unassigned

Bug Description

zegrep should use the same options as egrep.

As historic logfiles are compressed the problem is to search through them using egrep and zegrep gives the option to do that.

While tracking down something that seemed to be a nasty bug in another package I suddenly realized that zegrep didn't recognize the -h option suppressing filenames in results.

As many software tools e.g. fwanalog doesn't recognise the filename as the part of a logfile the tool breaks!

Example of results:

#zegrep -h "IN.+OUT.+SRC.+DST.+LEN.+TTL.+PROTO.+" /var/log/kern.log*
/var/log/kern.log:Feb 2 07:38:10 fw-int kernel: UDP Drop: IN= OUT=eth0 SRC=192.168.1.1 DST=192.168.1.254 LEN=56 TOS=0x00 PREC=0x00 TTL=64 ID=14176 DF PROTO=UDP SPT=2853 DPT=53 LEN=36

#egrep -h "IN.+OUT.+SRC.+DST.+LEN.+TTL.+PROTO.+" /var/log/kern.log*
Feb 2 07:38:10 fw-int kernel: UDP Drop: IN= OUT=eth0 SRC=192.168.1.1 DST=192.168.1.254 LEN=56 TOS=0x00 PREC=0x00 TTL=64 ID=14176 DF PROTO=UDP SPT=2853 DPT=53 LEN=36

Revision history for this message
Albert Damen (albrt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in gzip.

Revision history for this message
Steve Brown (brownsjm) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.