Hi All,

I am trying to list all *.raku programs with
the "run" command (I am updating my "run"
keeper with examples):

<RunTest.raku>
#!/usr/bin/raku

# my @args = "ls", "-al", Q[RunTest.raku];
my @args = "ls", "-al", Q[*.raku];
my $p = run( |@args, :err, :out );

my int $x = $p.exitcode;
my Str $y = $p.err.slurp(:close);
my Str $z = $p.out.slurp(:close);

say "\@args = <" ~ @args ~ ">";
print "\$z = <$z>\n";
</RunTest.raku>


result:
    @args = <ls -al *.raku>
    $z = <>

The commented out @args line does work.

How do I send a wild card to "run"?

Yours in Confusion,
-T

Reply via email to