[zstdgrep] Remove -f because zstdcat implies it
This commit is contained in:
parent
2c10bbd866
commit
f589e2b5c8
@ -109,7 +109,7 @@ if [ "$#" -lt 1 ]; then
|
||||
# ... on stdin
|
||||
set -f # Disable file name generation (globbing).
|
||||
# shellcheck disable=SC2086
|
||||
"${zcat}" -f - | "${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}" -f -- "$1" | "${grep}" --label="${1}" ${grep_args} -- -
|
||||
"${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- -
|
||||
else
|
||||
"${zcat}" -f -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" -
|
||||
"${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" -
|
||||
fi
|
||||
[ "$?" -ne 0 ] && EXIT_CODE=1
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user