aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <vaeth@mathematik.uni-wuerzburg.de>2011-04-15 04:54:49 -0400
committerLasse Collin <lasse.collin@tukaani.org>2011-04-18 19:33:27 +0300
commitbd5002f5821e3d1b04f2f56989e4a19318e73633 (patch)
treec61088da889325a05650c1aea7f84fee6bccfaa9
parentBump the version number to 5.1.1alpha and liblzma soname to 5.0.99. (diff)
downloadxz-bd5002f5821e3d1b04f2f56989e4a19318e73633.tar.xz
xzgrep: fix typo in $0 parsing
Reported-by: Diego Elio Pettenò <flameeyes@gentoo.org> Signed-off-by: Martin Väth <vaeth@mathematik.uni-wuerzburg.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--src/scripts/xzgrep.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in
index 00242377..9e25b53a 100644
--- a/src/scripts/xzgrep.in
+++ b/src/scripts/xzgrep.in
@@ -27,7 +27,7 @@
xz='@xz@ --format=auto'
unset GZIP BZIP BZIP2 LZOP
-case ${0##/*} in
+case ${0##*/} in
*egrep*) prog=xzegrep; grep=${GREP:-egrep};;
*fgrep*) prog=xzfgrep; grep=${GREP:-fgrep};;
*) prog=xzgrep; grep=${GREP:-grep};;
@@ -35,7 +35,7 @@ esac
version="$prog (@PACKAGE_NAME@) @VERSION@"
-usage="Usage: ${0##/*} [OPTION]... [-e] PATTERN [FILE]...
+usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]...
Look for instances of PATTERN in the input FILEs, using their
uncompressed contents if they are compressed.