Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support Cygwin & gitbash #2

Closed
josenk opened this issue Mar 15, 2018 · 1 comment
Closed

Please support Cygwin & gitbash #2

josenk opened this issue Mar 15, 2018 · 1 comment

Comments

@josenk
Copy link

josenk commented Mar 15, 2018

Please support Cygwin & gitbash.

This code crashes when run on Cygwin terminals or gitbash.

require 'io/console'

puts "enter a string:"
data = STDIN.noecho(&:gets).chomp

#This also fails
#data = STDIN.raw().chomp

#This works
#data = $stdin.readline().chomp

puts "data received: |#{data}|"

Here is examples of use cases.
hashicorp/vagrant#5624
https://github.com/josenk/vagrant-vmware-esxi/blob/v2.0.6/lib/vagrant-vmware-esxi/action/esxi_password.rb (Line 40: Need rescue to workaround bug.)

@nobu
Copy link
Member

nobu commented Nov 20, 2019

I cannot reproduce it.
Could you try with recent versions?

@nobu nobu closed this as completed Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants