From: Marcin 'Qrczak' Kowalczyk Date: 2003-05-18T00:50:00+09:00 Subject: Re: select strange behavier Dnia sob 17. maja 2003 17:05, Simon Strandgaard napisa�: > loop do > if (data = r1.read(100)) > Redir.instance.write_out data > else > puts "r1 not" > end If data is nil, then it's EOF, so you should better not try to read further. (If the input is a terminal, it will try to input more despite the user hitting ^D, which is annoying.) -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/