From: Eero Saynatkari Date: 2006-08-28T23:25:52+09:00 Subject: Re: Readline and StringIO Robert Klemme wrote: > On 28.08.2006 00:20, Eero Saynatkari wrote: >>>>> >>> well, if a bit less wieldy :) >> >> Come to think of it, might make such input redirection >> possible in irb also (if using --readline). > > You can use fork with a temporary file that is used as input. Even more > appropriate for testing interactive applications might be something like > expect or the Ruby version of it. Not sure if expect will work on output streams (though I will take a look) and yes, I am aware that this can be done with files (which is what I am doing currently). I was merely wondering if there is any reason for the T_FILE check in Readline (as opposed to a more permissive one) since that would be the easier solution. > Kind regards > > robert -- Posted via http://www.ruby-forum.com/.