Re: Raku one-liners posted on Unix & Linux StackExchange
[email protected] (Sean McAfee) Tue, 27 May 2025 14:14:38 -0700
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <CANan03aUpQNSzUwdbg2Nu8qq9c_RjXrFeeAZBDbVnSvZKLy6_g@mail.gmail.com> |
On Mon, May 26, 2025 at 6:50 AM Richard Hainsworth <[email protected]> wrote: > My understanding is that there is a default test so that '.' and '..' > are not returned. So if :test is not specified thats the behaviour you get. > The page I linked to earlier doesn't read that way to me at all: Returns a lazy list of IO::Path objects corresponding to the entries in a directory, optionally filtered by smartmatching their names *as strings* per the :test parameter. [...] Objects corresponding to special directory entries . and .. are not included. It certainly seems odd that adding a filter can result in more elements being returned than without one. Anyway, I'll file a bug report shortly, to at least fix the documentation. However, I reported a similar mismatch <https://github.com/rakudo/rakudo/issues/5303> a few years ago and encountered a lot of resistance, ending with nothing being done, so I'm not holding my breath.