From b9878d58d7d47f76fa3219afccf514877571a53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 19 Mar 2022 10:05:19 +0800 Subject: [PATCH] Fixed errors calling executables in the test suite helper. --- t/_helper.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/_helper.pm b/t/_helper.pm index e261e88..ad6b76a 100644 --- a/t/_helper.pm +++ b/t/_helper.pm @@ -264,7 +264,7 @@ sub read_file($) { } else { my ($PH, $CMD); $CMD = where_is "bzip2"; - $CMD = "bzip2 -cd \"$file\""; + $CMD = "\"$CMD\" -cd \"$file\""; open $PH, "$CMD |" or die this_file . ": $CMD: $!"; $content = join "", <$PH>; close $PH or die this_file . ": $CMD: $!"; @@ -287,7 +287,7 @@ sub read_file($) { } else { my ($PH, $CMD); $CMD = where_is "xz"; - $CMD = "xz -cd \"$file\""; + $CMD = "\"$CMD\" -cd \"$file\""; open $PH, "$CMD |" or die this_file . ": $CMD: $!"; $content = join "", <$PH>; close $PH or die this_file . ": $CMD: $!";