Skip to content

Commit

Permalink
Revert "Implement "bare" REPL and use it on non-TTY uses"
Browse files Browse the repository at this point in the history
This reverts commit 2c0cd0a.

The feature was implemented in a superior way in
Raku/nqp@5bec212105
  • Loading branch information
zoffixznet committed Aug 29, 2017
1 parent b6a6023 commit 94fe65d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/core/REPL.pm
Expand Up @@ -246,16 +246,7 @@ do {
$self but FallbackBehavior
}

method !handle-bare-REPL-eval(Mu \compiler, %adverbs) {
my $editor := %*ENV<RAKUDO_LINE_EDITOR> // '';
return unless (not $*IN.t and not $editor) or $editor eq 'bare';
compiler.eval($*IN.slurp, |%adverbs);
exit;
}

method new(Mu \compiler, Mu \adverbs) {
self!handle-bare-REPL-eval(compiler, adverbs);

my $multi-line-enabled = !%*ENV<RAKUDO_DISABLE_MULTILINE>;
my $self = self.bless();
$self.init(compiler, $multi-line-enabled);
Expand Down

0 comments on commit 94fe65d

Please sign in to comment.