diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-17 20:55:16 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-17 20:57:06 +0300 |
commit | b48f9d615f2c2e8d2f6e253d0e48ee66d0652b68 (patch) | |
tree | fb1063a79b8562c47f73e0c1e7f1dfc07792351e /configure.ac | |
parent | Tests: Add the .lzma files to test_files.sh. (diff) | |
download | xz-b48f9d615f2c2e8d2f6e253d0e48ee66d0652b68.tar.xz |
xzgrep: Fix parsing of certain options.
Fix handling of "xzgrep -25 foo" (in GNU grep "grep -25 foo" is
an alias for "grep -C25 foo"). xzgrep would treat "foo" as filename
instead of as a pattern. This bug was fixed in zgrep in gzip in 2012.
Add -E, -F, -G, and -P to the "no argument required" list.
Add -X to "argument required" list. It is an
intentionally-undocumented GNU grep option so this isn't
an important option for xzgrep but it seems that other grep
implementations (well, those that I checked) don't support -X
so I hope this change is an improvement still.
grep -d (grep --directories=ACTION) requires an argument. In
contrast to zgrep, I kept -d in the "no argument required" list
because it's not supported in xzgrep (or zgrep). This way
"xzgrep -d" gives an error about option being unsupported instead
of telling that it requires an argument. Both zgrep and xzgrep
tell that it's unsupported if an argument is specified.
Add comments.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions