diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-12 22:11:24 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-12 22:11:24 +0100 |
| commit | 7306727d1b2ed05afc91548ba374f7400a2389e3 (patch) | |
| tree | 39cf4dff144f82dc9eaad30eae9c4fe67d405e4e /shell/ash_test | |
| parent | 6c93b24ce9dfb5c3970178ca2545502a7830716c (diff) | |
| download | busybox-w32-7306727d1b2ed05afc91548ba374f7400a2389e3.tar.gz busybox-w32-7306727d1b2ed05afc91548ba374f7400a2389e3.tar.bz2 busybox-w32-7306727d1b2ed05afc91548ba374f7400a2389e3.zip | |
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.right | 5 | ||||
| -rwxr-xr-x | shell/ash_test/ash-read/read_REPLY.tests | 5 |
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 000000000..59f5d5487 --- /dev/null +++ b/shell/ash_test/ash-read/read_REPLY.right | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | test 1: | abc1 def | | ||
| 2 | test 2: | \abc2 d\ef | | ||
| 3 | test 3: |abc3 def| | ||
| 4 | test 4: |\abc4 d\ef| | ||
| 5 | 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 000000000..ba20cae8d --- /dev/null +++ b/shell/ash_test/ash-read/read_REPLY.tests | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | echo ' \abc1 d\ef ' | ( read ; echo "test 1: |$REPLY|" ) | ||
| 2 | echo ' \abc2 d\ef ' | ( read -r ; echo "test 2: |$REPLY|" ) | ||
| 3 | echo ' \abc3 d\ef ' | ( read REPLY; echo "test 3: |$REPLY|" ) | ||
| 4 | echo ' \abc4 d\ef ' | ( read -r REPLY; echo "test 4: |$REPLY|" ) | ||
| 5 | echo Done | ||
