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

Can't do .trans on result of qx[] in Rakudo #2246

Closed
p6rt opened this issue Nov 6, 2010 · 4 comments
Closed

Can't do .trans on result of qx[] in Rakudo #2246

p6rt opened this issue Nov 6, 2010 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 6, 2010

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

Searchable as RT78874$

@p6rt
Copy link
Author

p6rt commented Nov 6, 2010

From @masak

$ perl6 -v

This is Rakudo Perl 6, version 2010.10-10-g142d220 built on parrot 2.9.1 r49786

Copyright 2008-2010, The Perl Foundation

$ perl6 -e 'my $s = qx[echo foo]; say $s.trans("o" => "u")'
too few positional arguments​: 2 passed, 3 (or more) expected
  in main program body at line 1

This is a recurring bug with many shapes and forms, most of which have
been fixed already. I guess qx[] returns something that's a Parrot
string, not a Perl 6 string, and Parrot strings happen to have a
.trans method too, but it has a different signature.

@p6rt
Copy link
Author

p6rt commented Jan 18, 2011

From @felliott

Hello,

This bug can be marked as resolved. It works in current Rakudo and has
a passing test in S02-literals/quoting.t

Cheers,
Fitz Elliott

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 18, 2011

From @felliott

Hello,

This bug can be marked as resolved. It works in current Rakudo and has
a passing test in S02-literals/quoting.t

Cheers,
Fitz Elliott

@p6rt
Copy link
Author

p6rt commented Jan 18, 2011

@masak - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jan 18, 2011
@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