xwp / vassh

vassh: Vagrant Host-Guest SSH Command Wrapper/Proxy/Forwarder
64 stars 6 forks source link

exit 0 causes terminal to freeze #12

Closed c3mdigital closed 10 years ago

c3mdigital commented 10 years ago
westonruter commented 10 years ago

@c3mdigital oh, this would be if the vassh function is being sourceed into your .bashrc, right? If, instead, the vassh script is invoked, then the exit would not cause the shell session to terminate, since the exit would be happening in a subshell. Not sure why exit 1 and exit 0 don't both kill the top shell.

c3mdigital commented 10 years ago

@westonruter If I use the brew version exit 1 doesn't terminate the shell session. If I run it sourced from my .bash_profile then exit 1 also makes the session terminate. If I run vassh vassh -h Then it works correctly.