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

- $a\ .\ chop bug #2440

Closed
p6rt opened this issue Jun 14, 2011 · 10 comments
Closed

- $a\ .\ chop bug #2440

p6rt opened this issue Jun 14, 2011 · 10 comments

Comments

@p6rt
Copy link

@p6rt p6rt commented Jun 14, 2011

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

Searchable as RT92822$

@p6rt
Copy link
Author

@p6rt p6rt commented Jun 14, 2011

From dtgml1@gmail.com

Whitespaces are not properly escaped in $a\ .\ chop
Note expected behaviour for $a\ ++

[21​:07​:46] <JimmyZ> perl6​: my $a = "helloo"; $a = $a\ .\ chop; say $a;
[21​:07​:50] <p6eval> niecza v6-153-g6cb84d6​: OUTPUT«hello?»
[21​:07​:51] <p6eval> ..rakudo ae5bea​: OUTPUT«===SORRY!===?Confused at
line 22, near "$a = $a\\ ."?»
[21​:07​:51] <p6eval> ..pugs​: OUTPUT«*** ? Unexpected "\\"?
expecting "\187", ">>", "=", "^", operator name, qualified identifier,
variable name, "...", "--", "++", "i", array subscript, hash subscript
or code subscript? at /tmp/M89x3qR_2z line 1, column 29?»

[21​:08​:19] <JimmyZ> std​: my $a = "helloo"; $a = $a\ .\ chop; say $a;
[21​:08​:21] <p6eval> std 37a0cdd​: OUTPUT«ok 00​:01 122m?»

[21​:08​:23] <daniel-s> JimmyZ​: is that a bug in pugs and rakudo?

[21​:08​:47] <JimmyZ> I think it NYI in rakudo
[21​:09​:09] <JimmyZ> not sure whether it's a bug or NYI

[21​:10​:51] <JimmyZ> rakudo​: my $a = 1; say $a\ ++;
[21​:10​:53] <p6eval> rakudo ae5bea​: OUTPUT«1?»

[21​:11​:09] <JimmyZ> yes, it's a bug
[21​:12​:01] <daniel-s> does somebody want to submit a bug report?

[21​:18​:09] <daniel-s> perl6​: my $a = "helloo"; $a = $a.chop; say $a;
[21​:18​:17] <p6eval> pugs, rakudo ae5bea, niecza v6-153-g6cb84d6​: OUTPUT«hello?»

[21​:23​:17] <JimmyZ> perl6​: my $a = "helloo"; $a = $a\ \ 'world'; say
$a; # another one
[21​:23​:21] <p6eval> niecza v6-153-g6cb84d6​: OUTPUT«hellooworldâ�¤Â»
[21​:23​:22] <p6eval> ..pugs​: OUTPUT«*** â�¤ Unexpected "
\\"�
expecting "."� at /tmp/7_pprT39nG line 1, column 28�»
[21​:23​:22] <p6eval> ..rakudo ae5bea​: OUTPUT«===SORRY!===â�¤Confused at
line 22, near "$a = $a\\ ~"�»

--
daniel-s

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jun 14, 2011

From @zhuomingliang

JimmyZ> perl6​: my $a = "helloo"; $a = $a\ .\ chop; say $a;
p6eval> niecza v6-153-g6cb84d6​: OUTPUT«helloâ�¤Â»
p6eval> ..rakudo ae5bea​: OUTPUT«===SORRY!===â�¤Confused at line 22, near "$a =
$a\\ ."�»
p6eval> ..pugs​: OUTPUT«*** â�¤ Unexpected "\\"â�¤ expecting "\187", ">>", "=", "^",
operator name, qualified identifier, variable name, "...", "--", "++", "i",
array subscript, hash subscript or code subscript� at /tmp/nZo6wf0ZsG line 1,
column 29�»
moritz> std​: my $a = "helloo"; $a = $a\ .\ chop; say $a;
p6eval std 37a0cdd​: OUTPUT«ok 00​:01 122mâ�¤Â»
moritz> agreed
JimmyZ> perl6​: my $a = "helloo"; $a = $a\ \ 'world'; say $a; # another one
p6eval> niecza v6-153-g6cb84d6​: OUTPUT«hellooworldâ�¤Â»
p6eval> ..pugs​: OUTPUT«*** â�¤ Unexpected "
\\"� expecting "."� at /tmp/7_pprT39nG
line 1, column 28�»
p6eval> ..rakudo ae5bea​: OUTPUT«===SORRY!===â�¤Confused at line 22, near "$a =
$a\\ ~"�»

 �此�你身��康�天天快�
��亮

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jun 14, 2011

From @zhuomingliang

it is same as RT #​92822

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jun 14, 2011

@zhuomingliang - Status changed from 'new' to 'open'

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jun 14, 2011

From @zhuomingliang

it's same as RT#​92826

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Jun 14, 2011

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

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Feb 1, 2014

From @peschwa

Am Di 14. Jun 2011, 06​:53​:41, jimmy schrieb​:

it's same as RT#​92826

Fixed in Rakudo PR #​250, added test to roast in commit 9801c79 as per the example above.

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 14, 2014

From @usev6

On the note of Pepe Schwarz I'm closing this ticket. (The test is passing and it's in t/spectest.data.)

$ perl6-m -e 'my $a = "helloo"; $a = $a\ .\ chop; say $a;'
hello

Loading

1 similar comment
@p6rt
Copy link
Author

@p6rt p6rt commented Oct 14, 2014

From @usev6

On the note of Pepe Schwarz I'm closing this ticket. (The test is passing and it's in t/spectest.data.)

$ perl6-m -e 'my $a = "helloo"; $a = $a\ .\ chop; say $a;'
hello

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 14, 2014

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

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant