From 43e5ab2e34fe55efd182c925309a4cf5ff2ec540 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 23 Jul 2019 09:55:05 +1000 Subject: Win32: set FOO lists values for all variables starting with FOO I'd been testing setting FOOBAR to Unicode values, so this test was failing due to the extra variable. --- t/op/magic.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/op/magic.t b/t/op/magic.t index 27c1d43da0..2a7a627d86 100644 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -104,7 +104,7 @@ END { eval '$ENV{"FOO"} = "hi there";'; # check that ENV is inited inside eval # cmd.exe will echo 'variable=value' but 4nt will echo just the value # -- Nikola Knezevic -if ($Is_MSWin32) { like `set FOO`, qr/^(?:FOO=)?hi there$/; } +if ($Is_MSWin32) { like `set FOO`, qr/^(?:FOO=)?hi there$/m; } elsif ($Is_VMS) { is `write sys\$output f\$trnlnm("FOO")`, "hi there\n"; } else { is `echo \$FOO`, "hi there\n"; } -- cgit v1.2.1