aboutsummaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-03 08:33:14 +0100
committerRon Yorston <rmy@pobox.com>2023-04-03 08:33:14 +0100
commit64c8f5f3d0bbfcaf3b88aa97a23d90c14326b79e (patch)
tree878917ac4dfd0d271494a1b5436db918b0a0ed88 /TODO
parent1b2ee3667543b2588446dba6655720eb929bfe03 (diff)
downloadbusybox-w32-64c8f5f3d0bbfcaf3b88aa97a23d90c14326b79e.tar.gz
busybox-w32-64c8f5f3d0bbfcaf3b88aa97a23d90c14326b79e.tar.bz2
busybox-w32-64c8f5f3d0bbfcaf3b88aa97a23d90c14326b79e.zip
ash: add support for INT trap
The trap builtin now handles INT. As before, other signals (from a limited list) are accepted but their traps don't have any effect. There's some variability in how shells handle traps. This patch upholds that proud tradition. Various changes are needed to make this work: - Line editing has a new flag to ignore Ctrl-C. - If INT is being trapped or ignored don't call raise_interrupt(). - A minimal implementation of dotrap() is provided. - Call dotrap() when the read builtin or line input detect Ctrl-C. - Adjust Ctrl-C detection when the INT trap is changed. - Set may_have_traps when an INT trap is set. Costs 368-448 bytes. (GitHub issue #303)
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions