On Sun, Sep 17, 2006 at 01:36:05AM +0900, Gene Tani wrote:
> Gene Tani wrote:
> > here's the bit to test if readline is compiled in, from Pragmatic's
> > "Rails Recipes" (which is simply outstanding)
> 
> Oops, should be:
> 
> ruby -rreadline -e 'p Something'

Actually, readline _is_ available.  It just don't support line-editing and
history:

   $ ruby -rreadline -e 'p readline'
   asdfsfs^[[D^[[D
   "asdfsfs\e[D\e[D\n"
   $

So what might be the reason that history/editing is not supported?  Are
there different libraries?  "ri readline" says:


   More than one method matched your request. You can refine
   your search by asking for information on one of:
   
        IO::readlines, IO#readline, IO#readlines, Kernel#readlines,
        Kernel#readline, Pathname#readlines, Zlib::GzipReader#readline,
        Zlib::GzipReader#readlines