X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=zgrep.in;h=9ddb55738e1150e0138015e988b57c6f02d63ec3;hb=15eea35eec74f226bb721ebf0b3ee7473b1a5ff9;hp=aa3567f2c3898c8d30ef77f569d9d9e0c3c5364c;hpb=0095746c83f59e1f45c9e803d61e205ab6cbfa83;p=gzip diff --git a/zgrep.in b/zgrep.in index aa3567f..9ddb557 100755 --- a/zgrep.in +++ b/zgrep.in @@ -93,7 +93,7 @@ fi res=0 for i do - gzip -cdfq "$i" | + gzip -cdfq -- "$i" | if test $files_with_matches -eq 1; then $grep $opt "$pat" > /dev/null && printf "%s\n" "$i" elif test $files_without_matches -eq 1; then