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 2c1ff2ed6b xzgrep: Use grep -H --label when available (GNU, *BSDs).
It avoids the use of sed for prefixing filenames to output lines.
Using sed for that is slower and prone to security bugs so now
the sed method is only used as a fallback.

This also fixes an actual bug: When grepping a binary file,
GNU grep nowadays prints its diagnostics to stderr instead of
stdout and thus the sed-method for prefixing the filename doesn't
work. So with this commit grepping binary files gives reasonable
output with GNU grep now.

This was inspired by zgrep but the implementation is different.
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: Use printf instead of echo in a few places. 2022-07-24 11:38:19 +03:00
xzgrep.1 xzgrep: Update man page timestamp. 2022-07-12 19:01:09 +03:00
xzgrep.in xzgrep: Use grep -H --label when available (GNU, *BSDs). 2022-07-24 11:38:19 +03:00
xzless.1 Major man page updates. 2010-09-27 23:29:34 +03:00
xzless.in Scripts: Use printf instead of echo in a few places. 2022-07-24 11:38:19 +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: Use printf instead of echo in a few places. 2022-07-24 11:38:19 +03:00