zgrep ignores -h grep option
Bug #215863 reported by
Steve Brown
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gzip (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gzip
Found this bug while trying to figure out why fwanalog did not work. It relies on sed parsing of zegrep -h ( = --no-filenames) output of gzipped logfiles. zegrep passes args to zgrep, which ignores the -h option.
Found the bug in Gutsy, verified also in most recent Hardy version, gzip_1.3.12-3.2
Patch for the fix attached.
I also submitted the bug to <email address hidden>, but haven't seen any response.
Thanks,
Steve Brown
To post a comment you must log in.
Thanks for your patch and I'm sorry it didn't get incorporated in the package. However, I have good news! This bug is fixed in Jaunty Jackalope with package version 1.3.12-6ubuntu2. The source code follows:
(-h | --no-f*)
no_filename=1;;