On Sun, Oct 1, 2017 at 12:35 PM, Zoffix Znet <perl6-bugs-follo...@perl.org>
wrote:

> $*PROGRAM-NAME is supposed to be a replacement for Perl 5's $0, but it
> doesn't work that way.
>
> What I'd expect to work:
>
> use v6;
> $*PROGRAM-NAME = 'foo';
>

This is not portable and not reliable --- although it will probably work on
the limited set of systems moarvm/rakudo currently run on. But the linked
ticket is not quite right either: even on Unix-likes that support it, the
result would be shown by 'ps' as something like 'foo [moarvm]' (exact
format will depend on OS and/or 'ps' implementation). This is forced for
security-related reasons, and you can't override the process's execname to
control the part in brackets.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to