diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-11-13 10:11:57 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2021-11-13 18:17:33 +0200 |
commit | 3a512c7787b2642ca946f4adc6e9a0a5d9b0d5a0 (patch) | |
tree | a895271a8461da7a1c3836d185fe6fed0fe11e28 /src/scripts/xzgrep.in | |
parent | Bump the version number for 5.3.2alpha. (diff) | |
download | xz-3a512c7787b2642ca946f4adc6e9a0a5d9b0d5a0.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
Diffstat (limited to 'src/scripts/xzgrep.in')
-rw-r--r-- | src/scripts/xzgrep.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |