Skip Menu |
Report information
Id: 131700
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: blackcatoverwall [at] gmail.com
Cc:
AdminCc:

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



Date: Tue, 4 Jul 2017 21:51:08 +0800
From: gfw blackcat <blackcatoverwall [...] gmail.com>
Subject: [IO] prompt not working on bash-on-ubuntu on win10
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 1.4k
In bash on win10

Code:

perl6 --ll-exception -e ' prompt "123" '

Output:

123
Cannot flush handle: Failed to flush filehandle: Input/output error
   at SETTING::src/core/Exception.pm:63  (/usr/share/perl6/runtime/CORE.setting.moarvm:throw)
 from SETTING::src/core/Failure.pm:44  (/usr/share/perl6/runtime/CORE.setting.moarvm:throw)
 from SETTING::src/core/Failure.pm:86  (/usr/share/perl6/runtime/CORE.setting.moarvm:sink)
 from SETTING::src/core/io_operators.pm:89  (/usr/share/perl6/runtime/CORE.setting.moarvm:prompt)
 from SETTING::src/core/io_operators.pm:83  (/usr/share/perl6/runtime/CORE.setting.moarvm:prompt)
 from -e:1  (<ephemeral file>:<unit>)
 from -e:1  (<ephemeral file>:<unit-outer>)
 from gen/moar/stage2/NQPHLL.nqp:1589  (/usr/share/nqp/lib/NQPHLL.moarvm:eval)
 from gen/moar/stage2/NQPHLL.nqp:1696  (/usr/share/nqp/lib/NQPHLL.moarvm:)
 from gen/moar/stage2/NQPHLL.nqp:1731  (/usr/share/nqp/lib/NQPHLL.moarvm:command_eval)
 from src/Perl6/Compiler.nqp:42  (/usr/share/nqp/lib/Perl6/Compiler.moarvm:command_eval)
 from gen/moar/stage2/NQPHLL.nqp:1677  (/usr/share/nqp/lib/NQPHLL.moarvm:command_line)
 from gen/moar/main.nqp:47  (/usr/share/perl6/runtime/perl6.moarvm:MAIN)
 from gen/moar/main.nqp:38  (/usr/share/perl6/runtime/perl6.moarvm:<mainline>)
 from <unknown>:1  (/usr/share/perl6/runtime/perl6.moarvm:<main>)
 from <unknown>:1  (/usr/share/perl6/runtime/perl6.moarvm:<entry>)

perl6 -v output:

This is Rakudo version 2017.06 built on MoarVM version 2017.06
implementing Perl 6.c.




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