aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/xzgrep.in
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-03-07 19:52:25 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-03-07 19:52:25 +0200
commitf4b2b52624b802c786e4e2a8eb6895794dd93b24 (patch)
treeebef424057fda686c9024986429766fd82968f84 /src/scripts/xzgrep.in
parentTreat all integer multiplier suffixes as base-2. (diff)
downloadxz-f4b2b52624b802c786e4e2a8eb6895794dd93b24.tar.xz
Fix xzgrep to not break if filenames have spaces or quotes.
Thanks to someone who reported the bug on IRC.
Diffstat (limited to '')
-rw-r--r--src/scripts/xzgrep.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in
index 9a9b393f..bfa9fb53 100644
--- a/src/scripts/xzgrep.in
+++ b/src/scripts/xzgrep.in
@@ -154,7 +154,7 @@ for i; do
# Fail if xz or grep (or sed) fails.
xz_status=$(
exec 5>&1
- (eval "$uncompress" -- "$i" 5>&-; echo $? >&5) 3>&- |
+ ($uncompress -- "$i" 5>&-; echo $? >&5) 3>&- |
if test $files_with_matches -eq 1; then
eval "$grep" -q && { printf '%s\n' "$i" || exit 2; }
elif test $files_without_matches -eq 1; then