I mean usable in one-liners. For example this:
raku -e 'dir(".")==>say()'
prints all files and directories in the current directory. How do I update it so it works recursively (without libraries and/or user-defined routines)? Or is it not possible?
I saw the :recursive
flag mentioned somewhere, but that doesn't work:
> raku -e 'dir(".", :recursive)==>say()'
Cannot resolve caller dir(Str:D, :recursive); none of these signatures matches:
(IO(Any) $path, Mu :$test!)
(IO(Any) $path)
(Mu :$test!)
()
in block <unit> at -e line 1
It could be useful in environments with missing shell tools (on Windows) or with different versions/forks of common tools.