diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-11-13 10:11:57 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-12 19:01:09 +0300 |
commit | 671673a7a209e6131491e6a424758bbc13fb7aa1 (patch) | |
tree | b8ed27e981c15a9eab7a0bcb99f3dec65c2e6fe8 | |
parent | Update THANKS. (diff) | |
download | xz-671673a7a209e6131491e6a424758bbc13fb7aa1.tar.xz |
xzgrep: use `grep -E/-F` instead of `egrep` and `fgrep`
`egrep` and `fgrep` have been deprecated in GNU grep since 2007, and in
current post 3.7 Git they have been made to emit obsolescence warnings:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1
-rw-r--r-- | src/scripts/xzgrep.1 | 8 | ||||
-rw-r--r-- | src/scripts/xzgrep.in | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/scripts/xzgrep.1 b/src/scripts/xzgrep.1 index 3ac4fadb..dcbd0316 100644 --- a/src/scripts/xzgrep.1 +++ b/src/scripts/xzgrep.1 @@ -67,9 +67,9 @@ is invoked as or .B xzfgrep then -.BR egrep (1) +.B grep \-E or -.BR fgrep (1) +.B grep \-F is used instead of .BR grep (1). The same applies to names @@ -87,9 +87,9 @@ environment variable is set, .B xzgrep uses it instead of .BR grep (1), -.BR egrep (1), +.BR "grep \-E" , or -.BR fgrep (1). +.BR "grep \-F" . .SH "SEE ALSO" .BR grep (1), .BR xz (1), diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in index baec826e..b180936c 100644 --- a/src/scripts/xzgrep.in +++ b/src/scripts/xzgrep.in @@ -29,8 +29,8 @@ xz='@xz@ --format=auto' unset GZIP BZIP BZIP2 LZOP case ${0##*/} in - *egrep*) prog=xzegrep; grep=${GREP:-egrep};; - *fgrep*) prog=xzfgrep; grep=${GREP:-fgrep};; + *egrep*) prog=xzegrep; grep=${GREP:-grep -E};; + *fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};; *) prog=xzgrep; grep=${GREP:-grep};; esac |