]> git.pld-linux.org Git - packages/bzip2.git/commitdiff
- use sed, bash not needed
authorsparky <sparky@pld-linux.org>
Fri, 16 Jun 2006 19:23:13 +0000 (19:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bzip2-bzgrep.patch -> 1.3

bzip2-bzgrep.patch

index b8415c63cce5185bb60956eec2723a9910c35782..6f2a4e26bb20ccc719dbd13878be074ef616d3d8 100644 (file)
@@ -1,19 +1,11 @@
 --- bzip2-1.0.2/bzgrep.flaw    2005-06-07 13:43:01.000000000 +0200
 +++ bzip2-1.0.2/bzgrep 2005-06-07 14:07:50.000000000 +0200
-@@ -1,4 +1,4 @@
--#!/bin/sh
-+#!/bin/bash
- # Bzgrep wrapped for bzip2, 
- # adapted from zgrep by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
-@@ -63,7 +63,11 @@
+@@ -63,7 +63,9 @@
      bzip2 -cdfq "$i" | $grep $opt "$pat"
      r=$?
    else
 -    bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${i}:|"
-+    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=$?
This page took 0.029294 seconds and 4 git commands to generate.