Skip Menu |
Report information
Id: 119401
Status: open
Priority: 0/
Queue: perl6

Owner: FROGGS.de <email [at] froggs.de>
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] < $< $> > yields a one-element list, not a two-element list in Rakudo
Date: Wed, 21 Aug 2013 14:40:03 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 270b
<lizmat> r: .say for < $< $> > # rakudobug ? <camelia> rakudo e84dda: OUTPUT«$<$>␤» <benabik> Yeah. I would have expected "$<\n$>\n" <benabik> r: < $< $> >.perl.say <camelia> rakudo e84dda: OUTPUT«("\$<\$>",).list␤» <jnthn> Yeah. Odd * masak submits rakudobug
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 974b
On Wed Aug 21 05:40:22 2013, masak wrote: Show quoted text
> <lizmat> r: .say for < $< $> > # rakudobug ? > <camelia> rakudo e84dda: OUTPUT«$<$>␤» > <benabik> Yeah. I would have expected "$<\n$>\n" > <benabik> r: < $< $> >.perl.say > <camelia> rakudo e84dda: OUTPUT«("\$<\$>",).list␤» > <jnthn> Yeah. Odd > * masak submits rakudobug
There's other fallout from the same thing that causes this: $ perl6 -e'say qx[ echo [ echo abcd ] ]' /bin/sh: line 1: ]: command not found [abcd $ echo [ echo abcd ] [ echo abcd ] This happens because postprocess_* is called on each <nibble>. Something like "< < a b c > >" is parsed as: "<" ← <starter> " " ← . "<" ← <starter> " a b c " ← <nibbler> ">" ← <stopper> " " ← . ">" ← <stopper> The inside <nibbler> post-processes " a b c ", turning it into ("a","b","c"). The outer <nibbler> subsequently turns that into "<"~("a","b","c")~">" (or "<a b c>"), and post-processes that into "<a b c>". A similar process happens for qx[].
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.1k
On Sat Apr 19 20:42:11 2014, Mouq wrote: Show quoted text
> On Wed Aug 21 05:40:22 2013, masak wrote:
> > <lizmat> r: .say for < $< $> > # rakudobug ? > > <camelia> rakudo e84dda: OUTPUT«$<$>␤» > > <benabik> Yeah. I would have expected "$<\n$>\n" > > <benabik> r: < $< $> >.perl.say > > <camelia> rakudo e84dda: OUTPUT«("\$<\$>",).list␤» > > <jnthn> Yeah. Odd > > * masak submits rakudobug
> > There's other fallout from the same thing that causes this: > > $ perl6 -e'say qx[ echo [ echo abcd ] ]' > /bin/sh: line 1: ]: command not found > [abcd > $ echo [ echo abcd ] > [ echo abcd ] > > This happens because postprocess_* is called on each <nibble>. > Something like "< < a b c > >" is parsed as: > "<" ← <starter> > " " ← . > "<" ← <starter> > " a b c " ← <nibbler> > ">" ← <stopper> > " " ← . > ">" ← <stopper> > > The inside <nibbler> post-processes " a b c ", turning it into > ("a","b","c"). The outer <nibbler> subsequently turns that into > "<"~("a","b","c")~">" (or "<a b c>"), and post-processes that into "<a > b c>". A similar process happens for qx[].
Rather it *post-processes that into ("<a","b","c>")
OP Still reproducible (2017.11, HEAD(5929887))

On 2013-08-21 05:40:22, masak wrote:
Show quoted text
> <lizmat> r: .say for < $< $> > # rakudobug ?
> <camelia> rakudo e84dda: OUTPUT«$<$>␤»
> <benabik> Yeah. I would have expected "$<\n$>\n"
> <benabik> r: < $< $> >.perl.say
> <camelia> rakudo e84dda: OUTPUT«("\$<\$>",).list␤»
> <jnthn> Yeah. Odd
> * masak submits rakudobug




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org