busybox/shell/ash_test/ash-redir/redir_stdin1.tests
Denys Vlasenko 21806562ca hush: restore redirected stdin
function                                             old     new   delta
restore_redirects                                     52      95     +43
save_fd_on_redirect                                  243     253     +10
hfopen                                                90      99      +9
fgetc_interactive                                    259     261      +2
builtin_type                                         117     115      -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 64/-2)              Total: 62 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2019-11-01 14:16:07 +01:00

8 lines
130 B
Plaintext
Executable File

#Testing that stdin redirect is restored
echo read2 | $THIS_SH -c 'read r <redir_stdin1.tests
echo $r
read r
echo $r
'
echo Ok:$?