diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-06 18:19:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-06 18:19:35 +0200 |
commit | bb963bda62cc8b0965a921df70dfea44c4378163 (patch) | |
tree | 80039a5ec18fefdf74c0927b0e1ca58b8bf8d82f | |
parent | 959cb6742832a3b403a5d0116088a09f33afe927 (diff) | |
download | busybox-w32-bb963bda62cc8b0965a921df70dfea44c4378163.tar.gz busybox-w32-bb963bda62cc8b0965a921df70dfea44c4378163.tar.bz2 busybox-w32-bb963bda62cc8b0965a921df70dfea44c4378163.zip |
shell: syncronize ash and hush heredoc3.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash_test/ash-heredoc/heredoc3.right | 10 | ||||
-rwxr-xr-x | shell/ash_test/ash-heredoc/heredoc3.tests | 21 | ||||
-rw-r--r-- | shell/ash_test/ash-heredoc/heredoc9.right | 1 | ||||
-rwxr-xr-x | shell/ash_test/ash-heredoc/heredoc9.tests | 9 |
4 files changed, 31 insertions, 10 deletions
diff --git a/shell/ash_test/ash-heredoc/heredoc3.right b/shell/ash_test/ash-heredoc/heredoc3.right index ce0136250..6ed517f74 100644 --- a/shell/ash_test/ash-heredoc/heredoc3.right +++ b/shell/ash_test/ash-heredoc/heredoc3.right | |||
@@ -1 +1,9 @@ | |||
1 | hello | 1 | exit EOF-f |
2 | " | ||
3 | echo $f | ||
4 | echo `echo Hello World` | ||
5 | moo | ||
6 | EOF-f | ||
7 | EOF-f f | ||
8 | EOF-f | ||
9 | Ok | ||
diff --git a/shell/ash_test/ash-heredoc/heredoc3.tests b/shell/ash_test/ash-heredoc/heredoc3.tests index 96c227cc1..938577a89 100755 --- a/shell/ash_test/ash-heredoc/heredoc3.tests +++ b/shell/ash_test/ash-heredoc/heredoc3.tests | |||
@@ -1,9 +1,12 @@ | |||
1 | echo hello >greeting | 1 | f=1 |
2 | cat <<EOF && | 2 | cat <<- EOF-f"" |
3 | $(cat greeting) | 3 | exit EOF-f |
4 | EOF | 4 | " |
5 | { | 5 | echo $f |
6 | echo $? | 6 | echo `echo Hello World` |
7 | cat greeting | 7 | moo |
8 | } >/dev/null | 8 | EOF-f |
9 | rm greeting | 9 | EOF-f f |
10 | EOF-f | ||
11 | EOF-f | ||
12 | echo Ok | ||
diff --git a/shell/ash_test/ash-heredoc/heredoc9.right b/shell/ash_test/ash-heredoc/heredoc9.right new file mode 100644 index 000000000..ce0136250 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc9.right | |||
@@ -0,0 +1 @@ | |||
hello | |||
diff --git a/shell/ash_test/ash-heredoc/heredoc9.tests b/shell/ash_test/ash-heredoc/heredoc9.tests new file mode 100755 index 000000000..96c227cc1 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc9.tests | |||
@@ -0,0 +1,9 @@ | |||
1 | echo hello >greeting | ||
2 | cat <<EOF && | ||
3 | $(cat greeting) | ||
4 | EOF | ||
5 | { | ||
6 | echo $? | ||
7 | cat greeting | ||
8 | } >/dev/null | ||
9 | rm greeting | ||