]> git.pld-linux.org Git - packages/bzip2.git/commitdiff
- don't use bash extension
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 12 Jan 2007 13:30:49 +0000 (13:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bzip2-bzgrep.patch -> 1.5

bzip2-bzgrep.patch [new file with mode: 0644]

diff --git a/bzip2-bzgrep.patch b/bzip2-bzgrep.patch
new file mode 100644 (file)
index 0000000..4809525
--- /dev/null
@@ -0,0 +1,13 @@
+--- bzip2-1.0.4/bzgrep.orig    2007-01-03 03:00:55.000000000 +0100
++++ bzip2-1.0.4/bzgrep 2007-01-12 14:30:06.518134000 +0100
+@@ -63,9 +63,7 @@
+     bzip2 -cdfq "$i" | $grep $opt "$pat"
+     r=$?
+   else
+-    j=${i//\\/\\\\}
+-    j=${j//|/\\|}
+-    j=${j//&/\\&}
++    j=$(echo "$i" | sed -e 's/\\/\\\\/g;s/|/\\|/g;s/&/\\&/g')
+     j=`printf "%s" "$j" | tr '\n' ' '`
+     bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
+     r=$?
This page took 0.031867 seconds and 4 git commands to generate.