summaryrefslogtreecommitdiff
path: root/test/exec.t
diff options
context:
space:
mode:
authorChristian Schneider2024-04-23 11:00:12 +0200
committerChristian Schneider2024-04-23 11:00:12 +0200
commit66e286a3107cb0c628c13e61985019d659e0be19 (patch)
tree1959b97c710b54c53594aa2c7dea4a0f4e74e45e /test/exec.t
parentc5d0d46693b58e5fecc3f87d19fdf272fd29e0ab (diff)
downloaditools-66e286a3107cb0c628c13e61985019d659e0be19.tar.gz
itools-66e286a3107cb0c628c13e61985019d659e0be19.tar.bz2
itools-66e286a3107cb0c628c13e61985019d659e0be19.zip
Use single quotes to avoid confusion about $() expansion
Diffstat (limited to 'test/exec.t')
-rwxr-xr-xtest/exec.t2
1 files changed, 1 insertions, 1 deletions
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(