diff options
author | Ron Yorston <rmy@pobox.com> | 2020-02-08 16:48:40 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-02-08 16:48:40 +0000 |
commit | 8152e92d3abfff0386a672421e164ce163678dcf (patch) | |
tree | 2246535e3516556c7486c5b589d7fe82d6691e55 /modutils | |
parent | 47dbad5047e6bb9fb1f287245791711ceb822c96 (diff) | |
download | busybox-w32-8152e92d3abfff0386a672421e164ce163678dcf.tar.gz busybox-w32-8152e92d3abfff0386a672421e164ce163678dcf.tar.bz2 busybox-w32-8152e92d3abfff0386a672421e164ce163678dcf.zip |
ash: fixes to handling of ctrl-C in read builtin
Consider this script:
while read -r; do echo $REPLY; done
echo hello
There are currently two problems with this when the read is interrupted
by ctrl-C:
- The error return code is 0 when it should be 130;
- The echo command is executed.
Fix these issues by propagating the control event to the process that
would have caught it if the read builtin hadn't grabbed keyboard input.
Diffstat (limited to 'modutils')
0 files changed, 0 insertions, 0 deletions