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

[email protected] (Sean McAfee) Mon, 3 Nov 2025 12:00:51 +0800
Newsgroups perl.perl6.users
Message-ID <CANan03bLh7i=TdFEj8Bpv-HKT=t3UO97zLmzD8fxvmCgNKxbMg@mail.gmail.com>
On Mon, Nov 3, 2025 at 6:53 AM ToddAndMargo via perl6-users <
[email protected]> wrote:

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

You don't.  You have to do yourself what the shell does when it sees a
wildcard, and generate the list of filenames yourself, as in the following
examples:

my $p = run <ls -al>, dir.grep(/'.raku' $/);
my $p = run <ls -al>, dir(test => /'.raku' $/);
my $p = run <ls -al>, dir(test => *.ends-with('.raku'));