From 96710a3139fecda4bc12cd4f321399f71887535c Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Sat, 4 May 2024 18:03:52 +0900 Subject: [PATCH] [ruby/irb] Change debug test workaround only enabled when output is tty (https://github.com/ruby/irb/pull/949) https://github.com/ruby/irb/commit/3f231b8622 --- lib/irb/input-method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 9a24c885ba..684527edc4 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -67,7 +67,7 @@ module IRB # # See IO#gets for more information. def gets - puts + puts if @stdout.tty? # workaround for debug compatibility test print @prompt line = @stdin.gets @line[@line_no += 1] = line -- 2.11.4.GIT