Why isn't 'gets' working in my Ruby script when I run from TextMate?

前端 未结 2 1452
感动是毒
感动是毒 2021-01-15 10:36

When running the following ruby script:

puts gets.inspect

On the terminal I am prompted for input and then the inspect output is sh

2条回答
  •  既然无缘
    2021-01-15 11:17

    Specifically, you need to copy the tm_interactive_input.dylib file linked to by Phrogz in the following path:

    /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm_interactive_input.dylib
    

    Keep in mind that it's possible any TextMate updates will overwrite or delete this file.

提交回复
热议问题