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:36:14 +0300
commit5e3499059515033d1ce44b6fb0fa49183c7ac633 (patch)
tree1ebfdfb7b7bc8170876d854d71f4b02920527486
parentRemove doubled words from documentation and comments. (diff)
downloadxz-5e3499059515033d1ce44b6fb0fa49183c7ac633.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 a8b8117a..ae30725c 100644
--- a/src/scripts/xzgrep.in
+++ b/src/scripts/xzgrep.in
@@ -27,7 +27,7 @@
xz='@xz@ --format=auto'
unset GZIP BZIP BZIP2
-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.