1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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
This commit is contained in:
Ville Skyttä 2021-11-13 10:11:57 +02:00 committed by Lasse Collin
parent 45e538257e
commit 671673a7a2
2 changed files with 6 additions and 6 deletions

View file

@ -67,9 +67,9 @@ is invoked as
or or
.B xzfgrep .B xzfgrep
then then
.BR egrep (1) .B grep \-E
or or
.BR fgrep (1) .B grep \-F
is used instead of is used instead of
.BR grep (1). .BR grep (1).
The same applies to names The same applies to names
@ -87,9 +87,9 @@ environment variable is set,
.B xzgrep .B xzgrep
uses it instead of uses it instead of
.BR grep (1), .BR grep (1),
.BR egrep (1), .BR "grep \-E" ,
or or
.BR fgrep (1). .BR "grep \-F" .
.SH "SEE ALSO" .SH "SEE ALSO"
.BR grep (1), .BR grep (1),
.BR xz (1), .BR xz (1),

View file

@ -29,8 +29,8 @@ xz='@xz@ --format=auto'
unset GZIP BZIP BZIP2 LZOP unset GZIP BZIP BZIP2 LZOP
case ${0##*/} in case ${0##*/} in
*egrep*) prog=xzegrep; grep=${GREP:-egrep};; *egrep*) prog=xzegrep; grep=${GREP:-grep -E};;
*fgrep*) prog=xzfgrep; grep=${GREP:-fgrep};; *fgrep*) prog=xzfgrep; grep=${GREP:-grep -F};;
*) prog=xzgrep; grep=${GREP:-grep};; *) prog=xzgrep; grep=${GREP:-grep};;
esac esac