Forwarded from cucumber/aruba testsute issue cucumber/aruba#910 , then from https://bugs.ruby-lang.org/issues/20052
Looks line reline behaves oddly with redirect (non tty)
With ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] and Readline (version 8.2):
$ echo 'foo' | ruby -e 'require "readline"; puts Readline.readline(">")' > bar.log ; cat bar.log > foo
foo
With ruby 3.3.0dev (2023-12-09 master 1cbe114d1c) [x86_64-linux] and Reline (version 4.1): (Reline installed from gem install)
$ echo 'foo' | ruby -e 'require "reline"; puts Reline.readline(">")' > bar.log ; cat bar.log >>> f>f>fo>fo>foo>foofoo
Forwarded from cucumber/aruba testsute issue cucumber/aruba#910 , then from https://bugs.ruby-lang.org/issues/20052
Looks line reline behaves oddly with redirect (non tty)
With
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]andReadline(version 8.2):With
ruby 3.3.0dev (2023-12-09 master 1cbe114d1c) [x86_64-linux]andReline(version 4.1): (Relineinstalled fromgem install)