From 21806562ca6350c78a14a89c22f985900ce96ade Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 1 Nov 2019 14:16:07 +0100 Subject: 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 --- shell/ash_test/ash-redir/redir_stdin1.right | 3 +++ shell/ash_test/ash-redir/redir_stdin1.tests | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 shell/ash_test/ash-redir/redir_stdin1.right create mode 100755 shell/ash_test/ash-redir/redir_stdin1.tests (limited to 'shell/ash_test/ash-redir') diff --git a/shell/ash_test/ash-redir/redir_stdin1.right b/shell/ash_test/ash-redir/redir_stdin1.right new file mode 100644 index 000000000..1c6217e92 --- /dev/null +++ b/shell/ash_test/ash-redir/redir_stdin1.right @@ -0,0 +1,3 @@ +#Testing that stdin redirect is restored +read2 +Ok:0 diff --git a/shell/ash_test/ash-redir/redir_stdin1.tests b/shell/ash_test/ash-redir/redir_stdin1.tests new file mode 100755 index 000000000..f72253f9d --- /dev/null +++ b/shell/ash_test/ash-redir/redir_stdin1.tests @@ -0,0 +1,7 @@ +#Testing that stdin redirect is restored +echo read2 | $THIS_SH -c 'read r