delano / rye

Safe, parallel access to Unix shells from Ruby
http://delano.github.com/rye
MIT License
235 stars 32 forks source link

Updated stty session state save to check for an interactive terminal #56

Open mingers opened 10 years ago

mingers commented 10 years ago

This prevents stty throwing errors (like 'stty: standard input: Invalid argument') in the output when run in a non-interactive session (like via Jenkins).

delano commented 10 years ago

Thanks. One note: you need to leave the rescue in there b/c there are cases where calling stty fails.

mingers commented 10 years ago

Sorry, I thought that was how you were managing non-interactive. I'll add it back in

delano commented 10 years ago

np, thanks!