From 7306727d1b2ed05afc91548ba374f7400a2389e3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 12 Jan 2010 22:11:24 +0100 Subject: shell: split read builtin from ash Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-read/read_REPLY.right | 5 +++++ shell/ash_test/ash-read/read_REPLY.tests | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 shell/ash_test/ash-read/read_REPLY.right create mode 100755 shell/ash_test/ash-read/read_REPLY.tests (limited to 'shell/ash_test/ash-read') 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 -- cgit v1.1