[Bug 1192168] Re: zgrep does not correctly pass short options to grep
Ubuntu Foundations Team Bug Bot
1192168 at bugs.launchpad.net
Mon Sep 2 04:16:54 UTC 2013
The attachment "Patch to zgrep.in" seems to be a patch. If it isn't,
please remove the "patch" flag from the attachment, remove the "patch"
tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the
team.
[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gzip in Ubuntu.
https://bugs.launchpad.net/bugs/1192168
Title:
zgrep does not correctly pass short options to grep
Status in “gzip” package in Ubuntu:
New
Bug description:
zgrep --help / man zgrep say that “OPTIONs are the same as for
'grep'.” and “All options specified are passed directly to grep.”,
respectively. Testing shows that this does not work with the -h
option:
-h, --no-filename
Suppress the prefixing of file names on output. This is the default when there is only one file (or
only standard input) to search.
cadams at platinum:~ $ zgrep -h 11689 /vol/wdl/web-logs/*201306*.gz | head
/vol/wdl/web-logs/log.esclf_S.201305310000-201306010000-20130531-99.99c-0.gz:1.2.3.4 - - [31/May/2013:08:22:18 +0000] "GET /media/3570/service/dzi/1/22_files/10/1_0.jpg HTTP/1.1" 200 11689 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:21.0) Gecko/20100101 Firefox/21.0" "-"
cadams at platinum:~ $ zgrep --no-filename 11689 /vol/wdl/web-logs/*201306*.gz | head
1.2.3.4 - - [31/May/2013:08:22:18 +0000] "GET /media/3570/service/dzi/1/22_files/10/1_0.jpg HTTP/1.1" 200 11689 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:21.0) Gecko/20100101 Firefox/21.0" "-"
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gzip 1.4-1ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-45.70-generic 3.2.44
Uname: Linux 3.2.0-45-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
Date: Tue Jun 18 09:16:30 2013
MarkForUpload: True
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gzip
UpgradeStatus: Upgraded to precise on 2012-11-23 (206 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gzip/+bug/1192168/+subscriptions
More information about the foundations-bugs
mailing list