qqx no longer works in raku 2022.04

Viewed 165

Has there been a change in raku 2022.04 which breaks qqx? The line my $out = qqx|ls -l|; in a script leaves $out empty while the same line on raku 2022.03 and earlier populates $out with the contents of the current directory.

I have checked the release notes of raku but could not find a related change.

In case this is important: I'm on macOS 12.

EDIT:

qqx, shell and run stop working when they are enclosed in a loop reading from STDIN. The example below works in raku 2022.03 and earlier. It stops working in raku 2022.04. I have tried every version up to 2022.07 which is the latest version at the moment.

#!/usr/bin/env raku

sub MAIN() {
    for slurp().lines -> $line {
        shell <<ls -l ~>>;
    }
}
0 Answers
Related