summaryrefslogtreecommitdiff
path: root/shell/ash_test
diff options
context:
space:
mode:
authorDenys Vlasenko2010-01-12 22:11:24 +0100
committerDenys Vlasenko2010-01-12 22:11:24 +0100
commit7306727d1b2ed05afc91548ba374f7400a2389e3 (patch)
tree39cf4dff144f82dc9eaad30eae9c4fe67d405e4e /shell/ash_test
parent6c93b24ce9dfb5c3970178ca2545502a7830716c (diff)
downloadbusybox-7306727d1b2ed05afc91548ba374f7400a2389e3.zip
busybox-7306727d1b2ed05afc91548ba374f7400a2389e3.tar.gz
shell: split read builtin from ash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r--shell/ash_test/ash-read/read_REPLY.right5
-rwxr-xr-xshell/ash_test/ash-read/read_REPLY.tests5
2 files changed, 10 insertions, 0 deletions
diff --git a/shell/ash_test/ash-read/read_REPLY.right b/shell/ash_test/ash-read/read_REPLY.right
new file mode 100644
index 0000000..59f5d54
--- /dev/null
+++ b/shell/ash_test/ash-read/read_REPLY.right
@@ -0,0 +1,5 @@
+test 1: | abc1 def |
+test 2: | \abc2 d\ef |
+test 3: |abc3 def|
+test 4: |\abc4 d\ef|
+Done
diff --git a/shell/ash_test/ash-read/read_REPLY.tests b/shell/ash_test/ash-read/read_REPLY.tests
new file mode 100755
index 0000000..ba20cae
--- /dev/null
+++ b/shell/ash_test/ash-read/read_REPLY.tests
@@ -0,0 +1,5 @@
+echo ' \abc1 d\ef ' | ( read ; echo "test 1: |$REPLY|" )
+echo ' \abc2 d\ef ' | ( read -r ; echo "test 2: |$REPLY|" )
+echo ' \abc3 d\ef ' | ( read REPLY; echo "test 3: |$REPLY|" )
+echo ' \abc4 d\ef ' | ( read -r REPLY; echo "test 4: |$REPLY|" )
+echo Done