From d67cef2425fb5e75b75d52d9a308da6d29cd7a0d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 13 Jun 2007 06:47:47 +0000 Subject: hush: fix read builtin to not read ahead past eol and to not use insane amounts of stack. Testsuite updated. --- shell/hush_test/hush-misc/read.right | 4 ++++ shell/hush_test/hush-misc/read.tests | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 shell/hush_test/hush-misc/read.right create mode 100755 shell/hush_test/hush-misc/read.tests (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/read.right b/shell/hush_test/hush-misc/read.right new file mode 100644 index 000000000..0e50e2a23 --- /dev/null +++ b/shell/hush_test/hush-misc/read.right @@ -0,0 +1,4 @@ +read +cat +echo "REPLY=$REPLY" +REPLY=exec