zgrep ignores -h grep option

Bug #215863 reported by Steve Brown
24
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

Tags: fwanalog zgrep
Revision history for this message
Steve Brown (brownsjm) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

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;;

Changed in gzip (Ubuntu):
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Philip Tellis (bluesmoon) wrote :

Probably a regression, but I'm seeing this on Ubuntu 12.04 Precise Pangolin with all updates installed.

gzip 1.4-1ubuntu2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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