From 66e286a3107cb0c628c13e61985019d659e0be19 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 23 Apr 2024 11:00:12 +0200 Subject: Use single quotes to avoid confusion about $() expansion --- test/exec.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/exec.t b/test/exec.t index 237d59b..cc1be80 100755 --- a/test/exec.t +++ b/test/exec.t @@ -14,7 +14,7 @@ is(it::shell_command("echo {arg}", ['arg' => false]), "echo ", "remove is(it::shell_command("echo {arg}", ['arg' => []]), "echo ", "remove empty arrays"); is(it::shell_command("echo {arg}", (object)['arg' => "foo"]) , "echo foo", "allow objects"); is(it::shell_command("echo {arg}", ['arg' => 1], ['arg' => 2]), "echo 2", "support varargs"); -errlike(fn() => it::shell_command("echo -- $(echo {arg})", ['arg' => "-1"]), "leading - in value", "disallow leading dash in non-option args"); +errlike(fn() => it::shell_command('echo -- $(echo {arg})', ['arg' => "-1"]), "leading - in value", "disallow leading dash in non-option args"); is( -- cgit v1.2.3