mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-12-14 23:38:35 +00:00
5a867317bb
optimize close+fcntl(DUPFD) into dup2. add testsuites. function old new delta copyfd 47 68 +21 argstr 1311 1298 -13 popredir 148 131 -17 redirect 1139 1107 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 21/-62) Total: -41 bytes
6 lines
126 B
Plaintext
Executable File
6 lines
126 B
Plaintext
Executable File
# ash once couldn't redirect above fd#9
|
|
exec 1>/dev/null
|
|
(echo LOST1 >&22) 22>&1
|
|
(echo LOST2 >&22) 22>&1
|
|
(echo OK >&22) 22>&2
|