You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also added demo/trap.sh, and moved some other scripts in gold/ to demo/.
(These tests are difficult to automate.)
- Print signal names with -l
- Parse arguments and handle errors
Still need to hook up the code to signals and hooks.
Addresses issue #60.
Instead of running the handler directly, the Python signal handler
queues a node in ex.nodes_to_run. Then the main loop checks this on
every invocation of _Execute().
demo/trap.sh: expose EINTR / Ctrl-C problems with OSH. OSH traps only
work for basic use cases right now, since we're building on top of
Python's signal module for now.
Addresses issue #60.
Mentioned here and in issue #59
https://www.reddit.com/r/oilshell/comments/7lqbzc/osh_03_optimization_benchmarks_and_bug_fixes/
There are multiple parts to
trap
, so it may take multiple steps.The text was updated successfully, but these errors were encountered: