Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot assign to $*PROGRAM_NAME in Rakudo #2419

Closed
p6rt opened this issue May 2, 2011 · 6 comments
Closed

Cannot assign to $*PROGRAM_NAME in Rakudo #2419

p6rt opened this issue May 2, 2011 · 6 comments

Comments

@p6rt
Copy link

p6rt commented May 2, 2011

Migrated from rt.perl.org#89704 (status was 'resolved')

Searchable as RT89704$

@p6rt
Copy link
Author

p6rt commented May 2, 2011

From @masak

<dukeleto> how does one change the current process name in Perl 6? Is
that in the spec somewhere, or is it still implementation-dependent?
* masak goes a-lookin'
<PerlJam> I'd guess the latter though
<PerlJam> I wonder if you could search for "$0" or "the old $0" and
find something useful.
<masak> $*PROGRAM_NAME
<dukeleto> masak​: intetesting. going to play with that now. masak++
<masak> waitwait, I didn't say it *works*! :/
<PerlJam> it's mentioned in src/core/MAIN.pm
<PerlJam> and src/glue/run.pir and src/gen/core.pm
<masak> probably read-only, though...
<masak> rakudo​: $*PROGRAM_NAME = "foo"; say "alive"
<p6eval> rakudo 632f81​: OUTPUT«Cannot modify readonly value [...]
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented May 29, 2012

From @diakopter

On Mon May 02 12​:11​:48 2011, masak wrote​:

<dukeleto> how does one change the current process name in Perl 6? Is
that in the spec somewhere, or is it still implementation-dependent?
* masak goes a-lookin'
<PerlJam> I'd guess the latter though
<PerlJam> I wonder if you could search for "$0" or "the old $0" and
find something useful.
<masak> $*PROGRAM_NAME
<dukeleto> masak​: intetesting. going to play with that now. masak++
<masak> waitwait, I didn't say it *works*! :/
<PerlJam> it's mentioned in src/core/MAIN.pm
<PerlJam> and src/glue/run.pir and src/gen/core.pm
<masak> probably read-only, though...
<masak> rakudo​: $*PROGRAM_NAME = "foo"; say "alive"
<p6eval> rakudo 632f81​: OUTPUT�Cannot modify readonly value [...]
* masak submits rakudobug

fixed. marking testneeded.

17​:51 <diakopter> rakudo​: say $*PROGRAM_NAME; $*PROGRAM_NAME = "foo";
say $*PROGRAM_NAME;
  say "alive"
17​:51 <p6eval> rakudo 024843​: OUTPUT«/tmp/wQdMLNwVmF␤foo␤alive␤»

@p6rt
Copy link
Author

p6rt commented May 29, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

From @moritz

Note that assigning to $*PROGRAM_NAME doesn't change the program name
that you see from the outside (for example from `ps aux` on linux). This
depends on Raku/old-design-docs#14

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

From @coke

On Tue Aug 07 14​:37​:13 2012, moritz wrote​:

Note that assigning to $*PROGRAM_NAME doesn't change the program name
that you see from the outside (for example from `ps aux` on linux). This
depends on Raku/old-design-docs#14

Tests added to S02-magicals/progname.t

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

@coke - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant