This seems to work now: $ perl6-m -e 'END exit(5)'; echo $? 5 $ perl6-p -e 'END exit(5)'; echo $? 5 $ perl6-j -e 'END exit(5)'; echo $? 5
I added a test to S04-phasers/end.t with the following commit: https://github.com/perl6/roast/commit/7050e78bc7 I'm closing the ticket now.