From ce9a1fde0e1cce0089d8f6bc4a7c1b215a45bf24 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 21:46:42 +0800 Subject: [PATCH] Fixed errors calling executables in the test suite helper. --- t/_helper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/_helper.pm b/t/_helper.pm index c7ac4e5..3935d4f 100644 --- a/t/_helper.pm +++ b/t/_helper.pm @@ -223,7 +223,7 @@ sub read_file($) { } else { my ($PH, $CMD); $CMD = where_is "bzip2"; - $CMD = "bzip2 -cdf \"$file\""; + $CMD = "\"$CMD\" -cdf \"$file\""; open $PH, "$CMD |" or die this_file . ": $CMD: $!"; $content = join "", <$PH>; close $PH or die this_file . ": $CMD: $!";