Project

General

Profile

Actions

Bug #21188

open

PRISM does not end reading from tty with ^D twice

Added by nobu (Nobuyoshi Nakada) 15 days ago. Updated 6 days ago.

Status:
Assigned
Assignee:
Target version:
-
[ruby-core:121390]

Description

When reading from tty, ^D ends the text without the newline.

$ cat
a

Typing ^D here, only "a" is sent without a newline, and cat echos back it.
Then by typing ^D again, an empty read that means EOF causes cat to exit.

ruby --parser=parse.y behaves in this manner:

$ ruby --parser=parse.y
p __FILE__"-"

Typing ^D twice just after __FILE__, and p prints "-".
However prism requires ^D thrice.

Actions #1

Updated by hsbt (Hiroshi SHIBATA) 6 days ago

  • Status changed from Open to Assigned
Actions

Also available in: Atom PDF

Like0
Like0