Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pirania6
gzip-1.3.3-ax1.0
gzip-1.3.3-zgrep-sed.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gzip-1.3.3-zgrep-sed.patch of Package gzip-1.3.3-ax1.0
--- gzip-1.3.3/zgrep.in.sed 2005-03-31 16:21:41.000000000 +0200 +++ gzip-1.3.3/zgrep.in 2005-03-31 16:27:56.653567744 +0200 @@ -24,7 +24,7 @@ PATH="BINDIR:$PATH"; export PATH -prog=`echo $0 | sed 's|.*/||'` +prog=`echo "$0" | sed 's|.*/||'` case "$prog" in *egrep) grep=${EGREP-egrep} ;; *fgrep) grep=${FGREP-fgrep} ;; @@ -96,12 +96,16 @@ for i do gzip -cdfq "$i" | if test $files_with_matches -eq 1; then - $grep $opt "$pat" > /dev/null && echo $i + $grep $opt "$pat" > /dev/null && printf "%s\n" "$i" elif test $files_without_matches -eq 1; then - $grep $opt "$pat" > /dev/null || echo $i + $grep $opt "$pat" > /dev/null || printf "%s\n" "$i" elif test $with_filename -eq 0 && { test $# -eq 1 || test $no_filename -eq 1; }; then $grep $opt "$pat" else + i=${i//\\\\/\\\\} + i=${i//|/\\|} + i=${i//&/\\&} + i=`printf "%s" "$i" | tr '\n' ' '` if test $with_filename -eq 1; then sed_script="s|^[^:]*:|${i}:|" else
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor