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
..
2021-09-08 01:43:12 +02:00
2023-06-25 17:42:05 +02:00
2021-10-11 18:44:00 +02:00
2017-08-29 13:38:30 +02:00
2018-08-07 18:58:02 +02:00
2022-08-02 11:18:11 +02:00
2007-03-05 20:46:46 +00:00
2023-05-25 14:22:10 +02:00
2024-02-25 17:53:25 +01:00
2021-09-07 18:16:45 +02:00
2024-02-26 16:27:53 +01:00
2020-07-31 18:42:30 +02:00
2024-07-13 02:13:28 +02:00
2023-03-31 14:22:56 +02:00
2017-11-03 14:16:25 +01:00
2022-03-01 08:47:43 +01:00
2018-07-17 14:21:38 +02:00
2016-03-22 18:15:24 -04:00
2017-08-02 14:26:33 +02:00
2010-10-29 11:46:52 +02:00
2023-06-14 15:19:02 +02:00
2010-10-29 11:46:52 +02:00