From ecea76684314768e352deffbe9ffadd679cbcba7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 29 Nov 2012 14:18:19 +0000 Subject: positional args in it::exec --- tests/exec.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/exec.t b/tests/exec.t index 9425420..349f0ed 100755 --- a/tests/exec.t +++ b/tests/exec.t @@ -5,6 +5,7 @@ is(it::exec("echo gna"), "gna\n", "basic exec"); is(it::exec("echo {arg}", array('arg' => 'gna')), "gna\n", "exec with argument"); +is(it::exec("echo {0}", 'gna'), "gna\n", "exec with positional argument"); is(it::shell_command("echo {arg}", array('arg' => 'gna07,-:blah')), "echo gna07,-:blah", "don't quote arguments with only whitelistes characters"); is(it::shell_command("echo {arg}", array('arg' => '2>&1')), "echo '2>&1'", "quote arguments with dangerous characters"); is(it::shell_command("echo {arg}", array('arg' => '')), "echo ''", "quote empty arguments"); -- cgit v1.2.3