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

await start { qx/../ } doesn't wait #4930

Open
p6rt opened this issue Dec 26, 2015 · 6 comments
Open

await start { qx/../ } doesn't wait #4930

p6rt opened this issue Dec 26, 2015 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Dec 26, 2015

Migrated from rt.perl.org#127030 (status was 'open')

Searchable as RT127030$

@p6rt
Copy link
Author

p6rt commented Dec 26, 2015

From @LLFourn

perl6 -e 'say await start { qx/echo foo/ }'

outputs an empty list. Pretty sure that's a bug.

@p6rt
Copy link
Author

p6rt commented Dec 26, 2015

From @timo

On 12/26/2015 06​:08 AM, Lloyd Fournier (via RT) wrote​:

perl6 -e 'say await start { qx/echo foo/ }'

outputs an empty list. Pretty sure that's a bug.

I can't reproduce this. Does this code give the same result on your
machine as on mine?

  timo@​schmetterling ~> perl6 -e 'say (await start { qx/echo foo/ }).perl'
  "foo\n"

I think you may have misinterpreted the output of that script you
pasted, as it prints "foo" in one line, then an empty line.

@p6rt
Copy link
Author

p6rt commented Dec 26, 2015

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

@p6rt
Copy link
Author

p6rt commented Dec 26, 2015

From @LLFourn

Hey Timo. I'm afraid I'm interpreting it correctly​:

Lloyds-iMac​:~ llfourn$ perl6 -e 'say (await start { qx/echo foo/ }).perl'
slip()

Looks like we've got a mac bug​:
Lloyds-iMac​:~ llfourn$ perl6 -v
This is Rakudo version 2015.12 built on MoarVM version 2015.12
implementing Perl 6.c.

On Sat, Dec 26, 2015 at 10​:31 PM Timo Paulssen via RT <
perl6-bugs-followup@​perl.org> wrote​:

On 12/26/2015 06​:08 AM, Lloyd Fournier (via RT) wrote​:

perl6 -e 'say await start { qx/echo foo/ }'

outputs an empty list. Pretty sure that's a bug.

I can't reproduce this. Does this code give the same result on your
machine as on mine?

timo@&#8203;schmetterling ~> perl6 \-e 'say \(await start \{ qx/echo foo/

}).perl'
"foo\n"

I think you may have misinterpreted the output of that script you
pasted, as it prints "foo" in one line, then an empty line.

@p6rt
Copy link
Author

p6rt commented Dec 26, 2015

From @LLFourn

just to confirm. it works on my debian container​:

root@​84f1511728c6​:~# perl6 -e 'say (await start { qx/echo foo/ }).perl'
"foo\n"

On Sat, Dec 26, 2015 at 10​:41 PM Lloyd Fournier <lloyd.fourn@​gmail.com>
wrote​:

Hey Timo. I'm afraid I'm interpreting it correctly​:

Lloyds-iMac​:~ llfourn$ perl6 -e 'say (await start { qx/echo foo/ }).perl'
slip()

Looks like we've got a mac bug​:
Lloyds-iMac​:~ llfourn$ perl6 -v
This is Rakudo version 2015.12 built on MoarVM version 2015.12
implementing Perl 6.c.

On Sat, Dec 26, 2015 at 10​:31 PM Timo Paulssen via RT <
perl6-bugs-followup@​perl.org> wrote​:

On 12/26/2015 06​:08 AM, Lloyd Fournier (via RT) wrote​:

perl6 -e 'say await start { qx/echo foo/ }'

outputs an empty list. Pretty sure that's a bug.

I can't reproduce this. Does this code give the same result on your
machine as on mine?

timo@&#8203;schmetterling ~> perl6 \-e 'say \(await start \{ qx/echo foo/

}).perl'
"foo\n"

I think you may have misinterpreted the output of that script you
pasted, as it prints "foo" in one line, then an empty line.

@p6rt
Copy link
Author

p6rt commented Mar 12, 2018

From @dogbert17

On Sat, 26 Dec 2015 06​:25​:14 -0800, lloyd.fourn@​gmail.com wrote​:

just to confirm. it works on my debian container​:

root@​84f1511728c6​:~# perl6 -e 'say (await start { qx/echo foo/ }).perl'
"foo\n"

On Sat, Dec 26, 2015 at 10​:41 PM Lloyd Fournier <lloyd.fourn@​gmail.com>
wrote​:

Hey Timo. I'm afraid I'm interpreting it correctly​:

Lloyds-iMac​:~ llfourn$ perl6 -e 'say (await start { qx/echo foo/ }).perl'
slip()

Looks like we've got a mac bug​:
Lloyds-iMac​:~ llfourn$ perl6 -v
This is Rakudo version 2015.12 built on MoarVM version 2015.12
implementing Perl 6.c.

On Sat, Dec 26, 2015 at 10​:31 PM Timo Paulssen via RT <
perl6-bugs-followup@​perl.org> wrote​:

On 12/26/2015 06​:08 AM, Lloyd Fournier (via RT) wrote​:

perl6 -e 'say await start { qx/echo foo/ }'

outputs an empty list. Pretty sure that's a bug.

I can't reproduce this. Does this code give the same result on your
machine as on mine?

timo@&#8203;schmetterling ~> perl6 \-e 'say \(await start \{ qx/echo foo/

}).perl'
"foo\n"

I think you may have misinterpreted the output of that script you
pasted, as it prints "foo" in one line, then an empty line.

It also work on Mac with

This is Rakudo version 2018.02.1-146-g52e66ad30 built on MoarVM version 2018.02-33-ge639691a7
implementing Perl 6.c.

see https://irclog.perlgeek.de/perl6-dev/2018-03-12#i_15911567

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

No branches or pull requests

1 participant