busybox/shell/hush_test
Denys Vlasenko 23da5c4b71 hush: do not exit interactive shell on some redirection errors
$ echo >&99
hush: dup2(99,1): Bad file descriptor
$ echo >&9999
hush: fcntl(1,F_DUPFD,10000): Invalid argument
$ echo 2>/dev/tty 10>&9999
hush: fcntl(10,F_DUPFD,10000): Invalid argument
$ still alive!_

function                                             old     new   delta
static.setup_redirects                               334     394     +60
.rodata                                           105661  105712     +51
dup_CLOEXEC                                           49      79     +30
save_fd_on_redirect                                  263     277     +14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 155/0)             Total: 155 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2024-07-13 02:13:28 +02:00
..
hush-arith shell/math: bash-compatible handling of too large numbers 2023-06-25 17:42:05 +02:00
hush-bugs hush: document bugs in [[ =~ ]] comparison 2020-11-01 18:47:24 +01:00
hush-comm shell: fix script's comm field if ENABLE_FEATURE_PREFER_APPLETS=y 2021-10-11 18:44:00 +02:00
hush-getopts hush: fix "getopts" builtin to not be upset by other builtins calling getopt() 2017-08-29 13:38:30 +02:00
hush-glob ash: expand: Do not quote backslashes in unquoted parameter expansion 2018-08-07 18:58:02 +02:00
hush-heredoc ash: fix ifs cleanup on error paths 2022-08-02 11:18:11 +02:00
hush-invert hush testsuite: add many tests from ash testsuite 2016-10-02 17:39:31 +02:00
hush-leak
hush-misc hush: fix ELIF cmd1;cmd2 THEN ... not executing cmd2, closes 15571 2023-05-25 14:22:10 +02:00
hush-parsing hush: detect when terminating "done"/"fi" is missing 2024-02-25 17:53:25 +01:00
hush-psubst shell: update psubst testcases 2021-07-27 04:20:32 +02:00
hush-quoting ash: fix handling of single-quoted strings in pattern substitution 2024-02-26 16:27:53 +01:00
hush-read shell: Fix "read -d ''" behavior 2020-07-31 18:42:30 +02:00
hush-redir hush: do not exit interactive shell on some redirection errors 2024-07-13 02:13:28 +02:00
hush-signals hush: output bash-compat killing signal names 2020-10-24 04:26:43 +02:00
hush-standalone ash: fix nofork bug where environment is not properly passed to a command 2017-11-03 14:16:25 +01:00
hush-test2 hush: document bugs in [[ =~ ]] comparison 2020-11-01 18:47:24 +01:00
hush-vars ash: disable check for "good" function name, bash does not check this 2023-07-04 14:38:25 +02:00
hush-z_slow hush: improve ${var#...}, ${var:+...} and ${var/.../...} - handle quoting 2018-07-17 14:21:38 +02:00
.gitignore
run-all shell: sync ash/hush test scripts 2023-06-14 15:19:02 +02:00