[ruby-core:115680] [Ruby master Bug#20052] reline behaves oddly with redirect (non tty)