1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
xz-archive/src/scripts
Lasse Collin 62c1d2bc2d 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.
2022-07-24 11:38:19 +03:00
..
Makefile.am Build: Add support for translated man pages using po4a. 2020-03-11 12:05:57 +02:00
xzdiff.1 xzdiff: Update the man page about the exit status. 2022-07-12 19:01:09 +03:00
xzdiff.in Scripts: Add zstd support to xzdiff. 2022-07-12 18:42:21 +03:00
xzgrep.1 xzgrep: Update man page timestamp. 2022-07-12 19:01:09 +03:00
xzgrep.in xzgrep: Fix parsing of certain options. 2022-07-24 11:38:19 +03:00
xzless.1 Major man page updates. 2010-09-27 23:29:34 +03:00
xzless.in xzless: Fix less(1) version detection when it contains a dot. 2022-07-12 19:01:09 +03:00
xzmore.1 Man pages: Use similar syntax for synopsis as in xz. 2013-06-30 18:02:27 +03:00
xzmore.in Scripts: Put /usr/xpg4/bin to the beginning of PATH on Solaris. 2019-12-31 22:31:30 +02:00