Actions
Bug #21188
open
PRISM does not end reading from tty with ^D twice
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.
Updated by hsbt (Hiroshi SHIBATA) 6 days ago
- Status changed from Open to Assigned
Actions
Like0
Like0