ConnorAtherton / rb-readline

Pure-Ruby Readline Implementation
BSD 3-Clause "New" or "Revised" License
247 stars 54 forks source link

Readline doesn't work when started with env shebang #37

Open luislavena opened 13 years ago

luislavena commented 13 years ago

As reported in RubyInstaller list:

http://groups.google.com/group/rubyinstaller/browse_thread/thread/1e0b303b3d53f9e1

Seems that starting scripts with env shebang is breaking RbReadline support.

As workaround, starting the script with ruby -S irb seems to solve the issue.

chase439 commented 10 years ago

According to the docs, -S is mostly to allow platforms that don't support the shebang-style script header to emulate it

Since irb is #!/usr/bin/env ruby, could it be that Git bash under Windows doesn't support #! (shebang)?