5

スイッチを試してみると-v、オウムのsvnリビジョンが表示されます。

$ perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot revision 45822.

しかし、どうすればrakudoのバージョンを知ることができますvx.xx{some-git-hash}

ありがとう、

4

3 に答える 3

5

現在、あなたは知ることができません:(

RTには、レビューを待つパッチがあります:http ://rt.perl.org/rt3/Ticket/Display.html?id=73148しかし、これまでのところ、まだ適用されていません。

更新:十分に新しいRakudoを使用すると、次のようになります。

$ perl6 -v

This is Rakudo Perl 6, version 2010.06-212-g1086ff8

Copyright 2008-2010, The Perl Foundation

「バージョン」の後のものがgit describe出力です。

于 2010-06-11T10:19:55.097 に答える
5

特別な変数$*PERLはヒントを提供するかもしれません

> $*PERL.compiler
rakudo (2018.04.1)

> $*PERL.compiler.^attributes                                                                                                                                                                                     
(Str $!id Str $!release Str $!build-date Str $!codename Str $!name Str $!auth Version $!version Blob $!signature Str $!desc)

> $*PERL.compiler.^methods'                                                                                                                                                                                            
(BUILD build-date verbose-config Str gist id release codename name auth version signature desc BUILDALL) 

> $*PERL.compiler.name                                                                                                                                                                                       
rakudo

> $*PERL.compiler.version                                                                                                                                                                                       
v2018.04.1 

> $*PERL.compiler.auth                         
The Perl Foundation  

> $*PERL.compiler.build-date  # This being the date it was built on my machine                                                                                                                                                                                    
2018-05-18T21:59:11Z 

> $*PERL.compiler.verbose-config
...
于 2018-05-18T22:54:20.733 に答える
4

perl6-vが機能するようになりました。前回の月次リリース、それ以降のコミット数、およびgitハッシュを提供します。

于 2010-07-07T18:24:01.917 に答える