mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
62c1d2bc2d
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. |
||
---|---|---|
.. | ||
Makefile.am | ||
xzdiff.1 | ||
xzdiff.in | ||
xzgrep.1 | ||
xzgrep.in | ||
xzless.1 | ||
xzless.in | ||
xzmore.1 | ||
xzmore.in |