On Wed, 31 Jan 2007, Jacob Fugal wrote: > On my box: > > lukfugl@hephaestus:~$ cat a.rb > Thread.new { } > p $stdin.eof? > > lukfugl@hephaestus:~$ ruby a.rb # no CTRL-D, terminates immediately > true > > lukfugl@hephaestus:~$ ruby -v > ruby 1.8.5 (2006-08-25) [i486-linux] > > lukfugl@hephaestus:~$ uname -srm > Linux 2.6.17-2-686 i686 > > So it's present for me with ruby 1.8.5 on linux 2.6.17. I did just notice > that my ruby is compiled i486-linux -- that *may* have something to do with > it, but I don't think so. strange: [nrt@anchor ~]$ ruby -v -e' Thread.new{} and p STDIN.eof? ' # ctrl-d ruby 1.8.5 (2006-12-11 patchlevel 5000) [i686-linux] true [nrt@anchor ~]$ uname -srm Linux 2.6.9-42.0.3.ELsmp i686 and: harp:~ > ruby19 -v -e' Thread.new{} and p STDIN.eof? ' # ctrl-d ruby 1.9.0 (2006-07-26) [i686-linux] true harp:~ > uname -srm Linux 2.4.21-47.0.1.EL i686 this could get tricky to debug! none of my linux versions or ruby versions show this... just to be clear (to everyone): have you all compiled ruby from source? all my installs are from source using nothing but '--prefix' given to ./configure. if anyone has a package (cough) manager or vendor (cough cough) install i'd reccomend compiling from source without any options and testing again. kind regards. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama