mirror of
https://git.busybox.net/busybox
synced 2025-05-10 04:33:59 +02:00
$ 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>
10 lines
143 B
Text
Executable file
10 lines
143 B
Text
Executable file
cd /proc/$$
|
|
exec 5>/dev/null
|
|
exec 4>/dev/null
|
|
exec 3>/dev/null
|
|
ls -1 fd/5
|
|
ls -1 fd/4
|
|
ls -1 fd/3
|
|
exec 5>&-
|
|
test -e fd/5 && echo BUG
|
|
echo One:$?
|