Permalink
Please sign in to comment.
Browse files
Ctrl-C no longer exits OSH, at least under some circumstances.
We were using Python's default SIGINT handler, which sets a flag and then throws KeyboardInterrupt at the current execution point. Now we have our own signal handler. It seems to work, although it's hard to test automatically. OSH does behave a little differently than other shells: it doesn't reprint the prompt after Ctrl-C. I'm not sure other shells do that. I looked at dash and it does have special handling for SIGINT. Addresses issue #36.
- Loading branch information...
Showing
with
61 additions
and 21 deletions.
- +5 −12 bin/oil.py
- +24 −1 core/builtin.py
- +32 −8 core/process.py
0 comments on commit
a473594