|
From: | Robert Weiner |
Subject: | bug#36933: Default option for rgrep -r is not supported with zgrep |
Date: | Mon, 5 Aug 2019 23:31:58 -0400 |
Yes, I see the problem with the default zgrep which is a basic wrapper around grep. I don't see a clear way to fix handling for that. However, there is a much better version in the zutils package (apt-get install zutils) which handles the -r and --include and --exclude options that Hyperbole uses. Maybe we could add a version test and then a message to say to install the other version.See this link for details on these versions:BobOn Mon, Aug 5, 2019 at 8:01 PM Jean Louis <bugs@gnu.support> wrote:* Robert Weiner <address@hidden> [2019-08-06 01:41]:
> The man page I read for zgrep on Linux said it supports -r so maybe the problem is with the combination of options. Could you test further to isolate what triggers it and verify the version of zgrep you are using.
Thanks.
I am on Hyperbola GNU/Linux-libre, it has standard GNU commands.
Version I am using:
zgrep (gzip) 1.8
Copyright (C) 2010-2016 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Jean-loup Gailly.
NAME
zgrep - search possibly compressed files for a regular _expression_
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. All options specified
are passed directly to grep. If no file is specified, then the standard
input is decompressed if necessary and fed to grep. Otherwise the given
files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep pro‐
gram to be invoked.
EXIT STATUS
Exit status is 0 for a match, 1 for no matches, and 2 if trouble.
BUGS
The following grep options are not supported: --dereference-recursive
(-R), --directories (-d), --exclude, --exclude-from, --exclude-dir,
--include, --null (-Z), --null-data (-z), and --recursive (-r).
AUTHOR
Charles Levert (address@hidden)
[Prev in Thread] | Current Thread | [Next in Thread] |