diff options
| author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-11-10 06:40:29 +0000 |
|---|---|---|
| committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-11-10 06:40:29 +0000 |
| commit | 20fc2744f36e2d93bde52e255fd56812eb35bda8 (patch) | |
| tree | a070ce941bd1c8e83538a1f682fa78fb4c23064e /updater/bzip2-1.0.3/bzgrep | |
| parent | 2a63014742e62d7d036ba1009ced1a50cab16e93 (diff) | |
Updated bzip2 to version 1.0.6
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@554 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/bzip2-1.0.3/bzgrep')
| -rw-r--r-- | updater/bzip2-1.0.3/bzgrep | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/updater/bzip2-1.0.3/bzgrep b/updater/bzip2-1.0.3/bzgrep index dbfc00e..9a04b83 100644 --- a/updater/bzip2-1.0.3/bzgrep +++ b/updater/bzip2-1.0.3/bzgrep @@ -63,7 +63,11 @@ for i do bzip2 -cdfq "$i" | $grep $opt "$pat" r=$? else - bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${i}:|" + j=${i//\\/\\\\} + j=${j//|/\\|} + j=${j//&/\\&} + j=`printf "%s" "$j" | tr '\n' ' '` + bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|" r=$? fi test "$r" -ne 0 && res="$r" |
