4

Has there been a change in raku 2022.04 which breaks qqx, shell and run?

The following command prints "ok" on raku 2022.03:

echo hi | raku -e 'sub MAIN() { for slurp() { shell <<echo ok>>; } }'

It won't print anything on raku 2022.04 and up.

When removing the MAIN function like so:

echo hi | raku -e 'for slurp() { shell <<echo ok>>; }'

the command prints "ok" on every version of raku up to 2023.06.

14
  • 2
    This feels like it might be a macOS security thing, 2022.07 (the version I have currently installed) running on Linux has qqx running just fine. I know Apple recently release some security updates to do with running executables this may be effecting it? Aug 19, 2022 at 10:08
  • 1
    I cannot reproduce this on HEAD on MacOS 12.5: % mkdir foo % cd foo % echo bar > bar % echo baz > baz % raku -e 'my $out = qqx|ls -l|; say $out' total 16 -rw-r--r-- 1 liz staff 4 Aug 19 13:51 bar -rw-r--r-- 1 liz staff 4 Aug 19 13:52 baz Aug 19, 2022 at 11:54
  • 1
    I have been using rakubrew to go back one version at a time to find the latest version which ran the script ok. This is how I arrived at raku-2022.04. I can no longer reproduce the problem. Every single version does work. My sincere apologies for wasting your time!
    – C. Ocoa
    Aug 20, 2022 at 14:13
  • 1
    Hi @C.Ocoa Thank you for following up. Don't worry about the mistake -- we all make mistakes. I think the right thing to do now is to A) celebrate and B) close your Q. Do you have Close available to you (in the menu line below your Q)? For me I see links for Share Edit Follow Close Flag. If you don't see it, or prefer not to, I can do that for you. But I thought it polite to wait for you to do it if you can/want.
    – raiph
    Aug 20, 2022 at 17:24
  • 1
    Hi @raiph! I only have Share, Edit, Delete and Flag available. I'd appreciate if you could close the question for me. Thank you!
    – C. Ocoa
    Aug 23, 2022 at 7:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.