From: TomTom III Date: 2010-02-03T08:36:49+09:00 Subject: Re: Errno::ENOENT: No such file or directory - --readline Eric Christopherson wrote: > On Mon, Feb 1, 2010 at 6:04 PM, Michael R. <...@gmail.com> wrote: >> >> Any call to 'gets' results in the error, below, (I also pasted version >> info) >> >> $ irb --simple-prompt >>>> person = gets >> Errno::ENOENT: No such file or directory - --readline >> �from (irb):1:in `gets' >> �from (irb):1 > > It appears that somewhere along the line you have a program invoking > another program with the argument --readline, but for some reason it's > interpreting that as a filename instead of a switch. I'm not sure > where that is happening, though. AHH! THAT'S IT! I ran the command: $ find / -xdev -type f -exec grep -l readline {} \; ... then checked all the files it indicated contained the word "readline" inside, and found a file (which I did not create), named ".irbrc", which contains (among other things), the lines: # Prompt behavior ARGV.concat [ "--readline", "--prompt-mode", "simple" ] When I renamed that file, my irb sessions began to work correctly! Thanks for the help. I doubt I would have found it without the tips in the right direction! -- Posted via http://www.ruby-forum.com/.