zegrep doesn't obey the -h option breakin a lot of applications
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.
/var/log/
#egrep -h "IN.+OUT.
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
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/ FindRightPackag e . I have classified this bug as a bug in gzip.