如何知道我正在运行的 perl6/raku 版本?

发布于 2024-09-05 08:32:21 字数 274 浏览 2 评论 0原文

尝试使用 -v 开关,我得到了 parrot svn 修订版:

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

但是我如何知道 rakudo 版本,是 vx.xx 还是 <代码>{some-git-hash}?

谢谢,

Trying the -v switch, I get the parrot svn revision:

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

but how do I know the rakudo version, either a vx.xx or {some-git-hash}?

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鸠魁 2024-09-12 08:32:21

特殊变量$*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
...

The special variable $*PERL may provide the hint

> $*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
...
宣告ˉ结束 2024-09-12 08:32:21

目前你无法知道:(

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

其中“version”后面的内容是 git describe 输出。

Currently you can't know :(

There's a patch for that in RT that awaits review: http://rt.perl.org/rt3/Ticket/Display.html?id=73148 but so far it hasn't been applied yet.

Update: With a sufficiently new Rakudo, you get:

$ perl6 -v

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

Copyright 2008-2010, The Perl Foundation

Where the thing after "version" is the git describe output.

妳是的陽光 2024-09-12 08:32:21

perl6 -v 现在可以工作了。它提供了最后一个月的版本、此后的提交数量以及 git 哈希值。

perl6 -v now works. It provides the last monthly release, the number of commits since then, and the git hash.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文