2019-06-28 09:19:41 +02:00
|
|
|
Index: bzip2-1.0.7/bzgrep
|
|
|
|
===================================================================
|
|
|
|
--- bzip2-1.0.7.orig/bzgrep 2019-06-27 20:15:39.000000000 +0200
|
|
|
|
+++ bzip2-1.0.7/bzgrep 2019-06-27 23:12:37.027916706 +0200
|
2014-11-05 17:27:23 +01:00
|
|
|
@@ -63,9 +63,7 @@ for i do
|
|
|
|
bzip2 -cdfq "$i" | $grep $opt "$pat"
|
|
|
|
r=$?
|
|
|
|
else
|
|
|
|
- j=${i//\\/\\\\}
|
|
|
|
- j=${j//|/\\|}
|
|
|
|
- j=${j//&/\\&}
|
|
|
|
+ j=$(echo "$i" | sed 's/\\/&&/g;s/|/\\&/g;s/&/\\&/g')
|
|
|
|
j=`printf "%s" "$j" | tr '\n' ' '`
|
|
|
|
bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|"
|
|
|
|
r=$?
|