diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2020-05-23 20:37:33 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2020-05-23 20:37:33 +0000 |
commit | bc64b5ce191d48b503e4fad8c0cefb774a2fa969 (patch) | |
tree | 9b41925d7159f1f57c1b59a1a5f887c80a57e999 /programs/zstdgrep | |
parent | ea68403922c3b53b00fc999fcb3eaef1feb50177 (diff) |
Notes
Diffstat (limited to 'programs/zstdgrep')
-rwxr-xr-x | programs/zstdgrep | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/programs/zstdgrep b/programs/zstdgrep index 4879fb0dae49..61efaa9474a0 100755 --- a/programs/zstdgrep +++ b/programs/zstdgrep @@ -109,7 +109,7 @@ if [ "$#" -lt 1 ]; then # ... on stdin set -f # Disable file name generation (globbing). # shellcheck disable=SC2086 - "${zcat}" -fq - | "${grep}" ${grep_args} -- "${pattern}" - + "${zcat}" - | "${grep}" ${grep_args} -- "${pattern}" - EXIT_CODE=$? set +f else @@ -121,9 +121,9 @@ else while [ "$#" -gt 0 ]; do # shellcheck disable=SC2086 if [ $pattern_found -eq 2 ]; then - "${zcat}" -fq -- "$1" | "${grep}" --label="${1}" ${grep_args} -- - + "${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- - else - "${zcat}" -fq -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" - + "${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" - fi [ "$?" -ne 0 ] && EXIT_CODE=1 shift |