From: Shashank Date Date: 2003-01-15T10:37:11+09:00 Subject: Re: Segmentation fault on gets I know that I get this error if I run it in SciTe 1.41 on Windows XP: >ruby tst.rb tst.rb:2:in `gets': Bad file descriptor (Errno::EBADF) from tst.rb:2 What is your name?>Exit code: 1 But I have ** always ** got it to work in command shell (at the C:\> prompt). On your machine, what does the output of "ruby -v" look like, Leon ? -- shanko "Dr. Leon Stevens" wrote in message news:NFBBKIJCMLMMEMOCCCDLCEKJCCAA.stevensl@lincolnu.edu... > I'm trying to do simple keyboard input: > > a = "" > a = gets > puts a > > I'm running Ruby 1.6.7, under Win 98 SE. > > When I type the first letter, I receive the message > > [bug] Segmentation Fault. > > I've removed Ruby and reinstalled it several times, with consistent > failures. > > 1. What do I need to do? > > 2. There MUST be a better way. What is it? > > Leon > >