command line editing in irb under MSYS

Discussion in 'Ruby' started by Joel VanderWerf, Nov 25, 2003.

  1. Has anyone been able to get irb to work nicely under MSYS? And 'irb -r
    irb/completion'?

    For me, the cursor keys are broken, and in fact cause irb to exit. There
    are similar problems if I run the same irb executable in a CMD.EXE
    shell, or in the rxvt that comes with MSYS (which sets TERM=xterm).
    However, completion does work when running irb under CMD.EXE, strangely
    enough. So I know readline is working ok.

    Thanks for any help!

    Btw, if anyone else wants to build ruby from source under msys/mingw,
    you need to do two things other than the usual:

    1. Get bison (binary available from the mingw sourceforge site).

    2. Do 'configure --prefix=C:/msys/1.0/local' or similar. Use windows
    paths, rather than posix ('/usr/local'), or else the installer won't put
    binaries in the right place, because of the rules about when MSYS
    translates paths. (MSYS translates paths only when executing a binary in
    the MSYS /bin or /usr/bin directories.)
     
    Joel VanderWerf, Nov 25, 2003
    #1
    1. Advertising

  2. Joel VanderWerf wrote:

    > 2. Do 'configure --prefix=C:/msys/1.0/local' or similar. Use windows
    > paths, rather than posix ('/usr/local'), or else the installer won't put
    > binaries in the right place, because of the rules about when MSYS
    > translates paths. (MSYS translates paths only when executing a binary in
    > the MSYS /bin or /usr/bin directories.)


    I got that last bit backwards: MSYS translates paths _except_ when the
    binary is in /bin or /usr/bin.
     
    Joel VanderWerf, Nov 25, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luke Kenneth Casson Leighton
    Replies:
    0
    Views:
    387
    Luke Kenneth Casson Leighton
    Jan 15, 2009
  2. Luke Kenneth Casson Leighton
    Replies:
    1
    Views:
    357
    Ross Ridge
    Jan 25, 2009
  3. Joel VanderWerf
    Replies:
    3
    Views:
    200
    Joel VanderWerf
    Jul 13, 2004
  4. Marcel O.

    mkmf-bug under mingw without msys

    Marcel O., Feb 1, 2011, in forum: Ruby
    Replies:
    4
    Views:
    163
    Marcel O.
    Feb 7, 2011
  5. Water Lin
    Replies:
    3
    Views:
    153
    Water Lin
    Jan 6, 2009
Loading...

Share This Page