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
A script that gives different results when executed from a file and when pasted into REPL #3599
Comments
From djura@centrum.cz$ ./perl6-m --version #############################xx $ ./perl6-m
#############################xx $ cat strangeregexp.pl say "%20" ~~ /:i \%(<[0..9A..F]>**2)/; # ï½¢%20ï½£ say 'a'.subst(/(.)/,{$0~$0}); #############################xx ./perl6-m strangeregexp.pl aa #############################xx |
From @usev6This is another case where it makes a difference whether the command comes on a single line or on two separate lines: $ perl6-m -e 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/; say "a".subst(/(.)/,{$0~$0});' But with a newline in the echo command: $ echo 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/; The behaviour differs with rakudo.parrot and rakudo.jvm: $ echo 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/;
$ echo 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/;
|
1 similar comment
From @usev6This is another case where it makes a difference whether the command comes on a single line or on two separate lines: $ perl6-m -e 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/; say "a".subst(/(.)/,{$0~$0});' But with a newline in the echo command: $ echo 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/; The behaviour differs with rakudo.parrot and rakudo.jvm: $ echo 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/;
$ echo 'say "a".subst(/(.)/,{$0~$0}); say "%20" ~~ /:i \%(<[0..9A..F]>**2)/;
|
@usev6 - Status changed from 'new' to 'open' |
From @skidsTest PR for rakudo tree: rakudo/rakudo#1806 If that is accepted, someone with a jvm build should check whether it needs to be fudged for rakudo-j |
Migrated from rt.perl.org#123380 (status was 'open')
Searchable as RT123380$
The text was updated successfully, but these errors were encountered: