From 24774c8c72888362b4b74304c34d18ca34de1fe5 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Wed, 16 Dec 2015 22:25:34 +0100 Subject: Let's interpolate @cmd directly --- t/travis.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 't/travis.t') diff --git a/t/travis.t b/t/travis.t index df44cf8..abcd327 100755 --- a/t/travis.t +++ b/t/travis.t @@ -25,13 +25,12 @@ sub run { @_ ); my $cmd = shift @{ $args{cmd} }; - my @args = @{ $args{cmd} }; - my @cmd = ($^X, "-I$lib", "$path/$cmd", @args); + my @cmd = ($^X, "-I$lib", "$path/$cmd", @{ $args{cmd} }); my $exit = $args{exit}; my ($output, $return) = capture_merged { my $ret; if (defined(my $input = $args{input})) { - $ret = system(qw/bash -c/, "$^X -I$lib $path/$cmd @args <> 8; + $ret = system(qw/bash -c/, "@cmd <> 8; } else { $ret = system(@cmd) && $? >> 8; -- cgit v1.2.3