Re: How do I send a wild card to "run"?
[email protected] (ToddAndMargo via perl6-users) Sun, 2 Nov 2025 20:30:19 -0800
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
On 11/2/25 8:00 PM, Sean McAfee wrote: > On Mon, Nov 3, 2025 at 6:53 AM ToddAndMargo via perl6-users <perl6- > [email protected] <mailto:[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')); > Thank you!