1 |
vapier 11/03/01 01:54:09 |
2 |
|
3 |
Added: xz-utils-5.0.1-xzgrep-typo.patch |
4 |
Log: |
5 |
Fix by Martin Väth for typo in xzgrep #356627 by Diego Elio Pettenò. |
6 |
|
7 |
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/xz-utils/files/xz-utils-5.0.1-xzgrep-typo.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: xz-utils-5.0.1-xzgrep-typo.patch |
16 |
=================================================================== |
17 |
http://bugs.gentoo.org/356627 |
18 |
|
19 |
From 399ff2690b17908552b44bf34065f2b11d1d7859 Mon Sep 17 00:00:00 2001 |
20 |
From: =?UTF-8?q?Martin=20V=C3=A4th?= <vaeth@××××××××××××××××××××××××.de> |
21 |
Date: Mon, 28 Feb 2011 20:45:16 -0500 |
22 |
Subject: [PATCH] xzgrep: fix typo in $0 parsing |
23 |
MIME-Version: 1.0 |
24 |
Content-Type: text/plain; charset=UTF-8 |
25 |
Content-Transfer-Encoding: 8bit |
26 |
|
27 |
Reported-by: Diego Elio Pettenò <flameeyes@g.o> |
28 |
Signed-off-by: Martin Väth <vaeth@××××××××××××××××××××××××.de> |
29 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
30 |
--- |
31 |
src/scripts/xzgrep.in | 4 ++-- |
32 |
1 files changed, 2 insertions(+), 2 deletions(-) |
33 |
|
34 |
diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in |
35 |
index bfa9fb5..708f7de 100644 |
36 |
--- a/src/scripts/xzgrep.in |
37 |
+++ b/src/scripts/xzgrep.in |
38 |
@@ -27,7 +27,7 @@ |
39 |
xz='@xz@ --format=auto' |
40 |
unset GZIP BZIP BZIP2 |
41 |
|
42 |
-case ${0##/*} in |
43 |
+case ${0##*/} in |
44 |
*egrep*) prog=xzegrep; grep=${GREP:-egrep};; |
45 |
*fgrep*) prog=xzfgrep; grep=${GREP:-fgrep};; |
46 |
*) prog=xzgrep; grep=${GREP:-grep};; |
47 |
@@ -35,7 +35,7 @@ esac |
48 |
|
49 |
version="$prog (@PACKAGE_NAME@) @VERSION@" |
50 |
|
51 |
-usage="Usage: ${0##/*} [OPTION]... [-e] PATTERN [FILE]... |
52 |
+usage="Usage: ${0##*/} [OPTION]... [-e] PATTERN [FILE]... |
53 |
Look for instances of PATTERN in the input FILEs, using their |
54 |
uncompressed contents if they are compressed. |
55 |
|
56 |
-- |
57 |
1.7.4.1 |