aboutsummaryrefslogtreecommitdiff
path: root/src/common/tuklib_mbstr_fw.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-07-18 21:52:31 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-07-24 11:38:19 +0300
commit2c1ff2ed6b9f17b3913866a15d776ebbbeb824d2 (patch)
treeb6241dd847e7d7f217613066418bcc48bf4ae17d /src/common/tuklib_mbstr_fw.c
parentxzgrep: Use -e to specify the pattern to grep. (diff)
downloadxz-2c1ff2ed6b9f17b3913866a15d776ebbbeb824d2.tar.xz
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.
Diffstat (limited to 'src/common/tuklib_mbstr_fw.c')
0 files changed, 0 insertions, 0 deletions