Project

General

Profile

Actions

Bug #20052

closed

reline behaves oddly with redirect (non tty)

Added by mtasaka (Mamoru TASAKA) 12 months ago. Updated 11 months ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-12-09 master 1cbe114d1c) [x86_64-linux]
[ruby-core:115667]

Description

Forwarded from cucumber/aruba testsute issue https://github.com/cucumber/aruba/issues/910

Looks line reline behaves oddly with redirect (non tty)

With ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] and Readline:

$ 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:

$ echo 'foo' | ruby -e 'require "reline"; puts Reline.readline(">")' > bar.log ; cat bar.log 
>>>f>f>fo>fo>foo>foofoo
Actions

Also available in: Atom PDF

Like1
Like0Like0Like0Like0Like0Like0