Skip to content
Permalink
Browse files

Mute &val warnings in &prompt in case of EOF.

Related to #1906.
  • Loading branch information...
jkramer committed Jul 4, 2018
1 parent 38d7f2a commit 0275ea2903cdf16ed262c7b3e8467d8a9143408e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/io_operators.pm6
@@ -63,13 +63,13 @@ multi sub gist(|) {

proto sub prompt($?, *%) {*}
multi sub prompt() {
val $*IN.get
quietly val $*IN.get
}
multi sub prompt($msg) {
my $out := $*OUT;
$out.print($msg);
$out.flush();
val $*IN.get;
quietly val $*IN.get;
}

proto sub dir(|) {*}

0 comments on commit 0275ea2

Please sign in to comment.
You can’t perform that action at this time.