From bc64b5ce191d48b503e4fad8c0cefb774a2fa969 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Sat, 23 May 2020 20:37:33 +0000 Subject: Import Zstd 1.4.5 --- programs/zstdgrep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'programs/zstdgrep') 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 -- cgit v1.3