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

[email protected] (ToddAndMargo via perl6-users) Sun, 2 Nov 2025 14:53:42 -0800
Newsgroups perl.perl6.users
Message-ID <[email protected]>
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