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

$*EXECUTABLE filled wrong on parrot #3382

Closed
p6rt opened this issue May 7, 2014 · 5 comments
Closed

$*EXECUTABLE filled wrong on parrot #3382

p6rt opened this issue May 7, 2014 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 7, 2014

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

Searchable as RT121811$

@p6rt
Copy link
Author

p6rt commented May 7, 2014

From @teodozjan

$*EXECUTABLE contains right path on moar but on parrot it is pwd+basename.

$ pwd
/home/kamil

$ perl6-m

say $*EXECUTABLE
IO​::Path</home/kamil/rakudo/install/bin/perl6-m>
say $*EXECUTABLE.basename
perl6-m

$ perl6-p

say $*EXECUTABLE
IO​::Path</home/kamil/perl6-p>
say $*EXECUTABLE.basename
perl6-p

PATH=/usr/local/bin​:/usr/bin​:/bin​:/usr/local/games​:/usr/games​:/home/kamil/rakudo/install/bin​:/home/kamil/rakudo/install/lib/parrot/6.1.0-devel/languages/perl6/site/bin

$ perl6-p --version
This is perl6 version 2014.04-191-g8574c4f built on parrot 6.1.0
revision RELEASE_6_1_0
$ perl6-m --version
This is perl6 version 2014.04-191-g8574c4f built on MoarVM version
2014.04-57-g61f9cdb

--
Pozdrawiam

Kamil Ku�aga

@p6rt
Copy link
Author

p6rt commented May 7, 2014

From @FROGGS

Hi,

I am about to fix that issue, but that involves patching (and
rereleasing parrot).

It is about patching the pbc_to_exe to not stash ARGV[0], but also
figure out the absolute path in the perl6 binary.
This however is not somthing that can be done easily when it comes to
cross platform... Right now it works locally
on linux, but it has to work on OS X, BSD's and windows also.

Am 07.05.2014 13​:02, schrieb Kamil KuÅ�aga (via RT)​:

# New Ticket Created by "Kamil Ku�aga"
# Please include the string​: [perl #​121811]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=121811 >

$*EXECUTABLE contains right path on moar but on parrot it is pwd+basename.

$ pwd
/home/kamil

$ perl6-m

say $*EXECUTABLE
IO​::Path</home/kamil/rakudo/install/bin/perl6-m>
say $*EXECUTABLE.basename
perl6-m
$ perl6-p
say $*EXECUTABLE
IO​::Path</home/kamil/perl6-p>
say $*EXECUTABLE.basename
perl6-p
PATH=/usr/local/bin​:/usr/bin​:/bin​:/usr/local/games​:/usr/games​:/home/kamil/rakudo/install/bin​:/home/kamil/rakudo/install/lib/parrot/6.1.0-devel/languages/perl6/site/bin

$ perl6-p --version
This is perl6 version 2014.04-191-g8574c4f built on parrot 6.1.0
revision RELEASE_6_1_0
$ perl6-m --version
This is perl6 version 2014.04-191-g8574c4f built on MoarVM version
2014.04-57-g61f9cdb

@p6rt
Copy link
Author

p6rt commented May 7, 2014

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

@p6rt
Copy link
Author

p6rt commented Sep 8, 2014

@p6rt p6rt closed this as completed Sep 8, 2014
@p6rt
Copy link
Author

p6rt commented Sep 8, 2014

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant