From: Daniel Luz Date: 2009-01-07T08:22:52+09:00 Subject: [ruby-core:21177] [Feature #988] Make irb start a new line on EOF Feature #988: Make irb start a new line on EOF http://redmine.ruby-lang.org/issues/show/988 Author: Daniel Luz Status: Open, Priority: Normal This is a formalization of the request from [ruby-core:18513]: Other interactive interpreters (namely `python`, `lua`, `psh`, SpiderMonkey's `js` and V8's `shell`) emit a newline before exiting when fed an EOF (^D). This is a nice feature, as it makes your usual shell prompt start on its own line rather than appear on the same line as the interactive interpreter's prompt when you leave by pressing ^D, for instance. Any reason for irb not to do the same? I tried to make it behave as I wished, and the attached patch is the trivial solution I found. I should note, though, that I'm not familiarized with irb's source code, and this was a very quick hack; maybe this isn't the best place to implement the changes then. ---------------------------------------- http://redmine.ruby-lang.org