aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-05 09:31:50 +0100
committerRon Yorston <rmy@pobox.com>2023-04-05 09:31:50 +0100
commitd4494ebdeb3340f98a7a79244601b5d574ae36d1 (patch)
treee9f63b318a9a8b5ffff3b720ce9e0f919067d510 /libbb
parent490bbbb6e3a93045bb40442f5fc76d17a86b596b (diff)
downloadbusybox-w32-d4494ebdeb3340f98a7a79244601b5d574ae36d1.tar.gz
busybox-w32-d4494ebdeb3340f98a7a79244601b5d574ae36d1.tar.bz2
busybox-w32-d4494ebdeb3340f98a7a79244601b5d574ae36d1.zip
ash: special treatment for read builtin
When INT is being trapped the read builtin gets special treatment in bash. In a top-level interactive shell interrupting the read with Ctrl-C clears the input and allows the user to enter a new string. In a subshell Ctrl-C really does interrupt the read and the trap isn't executed. zsh works similarly, except that in the latter case the trap is executed. dash interrupts the read and executes the trap in both cases. ksh also interrupts the read in both cases but only executes the trap in the first. Implement the bash behaviour. (GitHub issue #303)
Diffstat (limited to 'libbb')
0 files changed, 0 insertions, 0 deletions