From: Michael Campbell Date: 2003-01-15T05:35:56+09:00 Subject: Re: Segmentation fault on gets --- "Berger, Daniel" wrote: > > -----Original Message----- > > > > I'm trying to do simple keyboard input: > > > > a = "" > > a = gets > > puts a > > Does it help if you specify stdin explicitly? -> $stdin.gets His original script works fine for me. =\ C:\TMP>ruby -v ruby 1.7.2 (2002-06-29) [i386-mswin32] C:\TMP>cat tmp.rb a = "" a = gets puts a C:\TMP>ruby tmp.rb foo <== I typed this. foo <== ruby "typed" this. ===== -- Yahoo IM: michael_s_campbell __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com