From: Christian Neukirchen Date: 2006-08-07T06:59:15+09:00 Subject: Re: How to redirect a string to stdin within code? Alex Young writes: >> However this seems an IRB issue Logans code just works fine in pure ruby > Yes... I can see why it's not allowed in IRB (if you get rid of > stdin, how the hell would you use the console? :-), I just don't know > why it segfaults. Just a guess: the readline extensions directly accesses $stdin without checking its type. -- Christian Neukirchen http://chneukirchen.org