awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 770 forks source link

^C kills the shell, not the command #86

Closed slotrans closed 8 years ago

slotrans commented 8 years ago

I may wish to cancel a command that's either not responding or which I realize is going to take too long (or for any number of other reasons), such as "ec2 describe-instances" with no filters, or "s3 ls " with a prefix that contains millions of files. The natural reflex in this situation is to hit ^C, which I was surprised to discover kills the whole shell. Exiting the shell is what I expect ^D to do (and indeed that works). I expect the code is simply not catching KeyboardInterrupt and/or setting a handler for SIGINT...

jamesls commented 8 years ago

This is fixed in https://github.com/awslabs/aws-shell/pull/50, but hasn't made its way into a published release yet.

We plan on having a release out in the near future.