diff options
-rw-r--r-- | shell/ash_test/ash-heredoc/heredoc5.right (renamed from shell/hush_test/hush-misc/heredoc2.right) | 0 | ||||
-rwxr-xr-x | shell/ash_test/ash-heredoc/heredoc5.tests (renamed from shell/hush_test/hush-misc/heredoc2.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc1.right (renamed from shell/hush_test/hush-misc/heredoc1.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc1.tests (renamed from shell/hush_test/hush-misc/heredoc1.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc2.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc2.tests | 7 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc3.right (renamed from shell/hush_test/hush-misc/heredoc3.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc3.tests (renamed from shell/hush_test/hush-misc/heredoc3.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc4.right (renamed from shell/hush_test/hush-misc/heredoc4.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc4.tests (renamed from shell/hush_test/hush-misc/heredoc4.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc5.right | 9 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc5.tests | 12 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc_backslash1.right (renamed from shell/hush_test/hush-misc/heredoc_backslash1.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc_backslash1.tests (renamed from shell/hush_test/hush-misc/heredoc_backslash1.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc_huge.right (renamed from shell/hush_test/hush-misc/heredoc_huge.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc_huge.tests (renamed from shell/hush_test/hush-misc/heredoc_huge.tests) | 0 |
16 files changed, 30 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/heredoc2.right b/shell/ash_test/ash-heredoc/heredoc5.right index 74110e3b5..74110e3b5 100644 --- a/shell/hush_test/hush-misc/heredoc2.right +++ b/shell/ash_test/ash-heredoc/heredoc5.right | |||
diff --git a/shell/hush_test/hush-misc/heredoc2.tests b/shell/ash_test/ash-heredoc/heredoc5.tests index e619bded1..e619bded1 100755 --- a/shell/hush_test/hush-misc/heredoc2.tests +++ b/shell/ash_test/ash-heredoc/heredoc5.tests | |||
diff --git a/shell/hush_test/hush-misc/heredoc1.right b/shell/hush_test/hush-heredoc/heredoc1.right index 7fc68f3e1..7fc68f3e1 100644 --- a/shell/hush_test/hush-misc/heredoc1.right +++ b/shell/hush_test/hush-heredoc/heredoc1.right | |||
diff --git a/shell/hush_test/hush-misc/heredoc1.tests b/shell/hush_test/hush-heredoc/heredoc1.tests index 2eeb4726b..2eeb4726b 100755 --- a/shell/hush_test/hush-misc/heredoc1.tests +++ b/shell/hush_test/hush-heredoc/heredoc1.tests | |||
diff --git a/shell/hush_test/hush-heredoc/heredoc2.right b/shell/hush_test/hush-heredoc/heredoc2.right new file mode 100644 index 000000000..a486f1ac4 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc2.right | |||
@@ -0,0 +1,2 @@ | |||
1 | bar | ||
2 | bar | ||
diff --git a/shell/hush_test/hush-heredoc/heredoc2.tests b/shell/hush_test/hush-heredoc/heredoc2.tests new file mode 100755 index 000000000..6d9ccb6cc --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc2.tests | |||
@@ -0,0 +1,7 @@ | |||
1 | foo () { | ||
2 | cat <<EOF && { echo "$1" ; } | ||
3 | $1 | ||
4 | EOF | ||
5 | } | ||
6 | |||
7 | foo "bar" | ||
diff --git a/shell/hush_test/hush-misc/heredoc3.right b/shell/hush_test/hush-heredoc/heredoc3.right index 6ed517f74..6ed517f74 100644 --- a/shell/hush_test/hush-misc/heredoc3.right +++ b/shell/hush_test/hush-heredoc/heredoc3.right | |||
diff --git a/shell/hush_test/hush-misc/heredoc3.tests b/shell/hush_test/hush-heredoc/heredoc3.tests index 938577a89..938577a89 100755 --- a/shell/hush_test/hush-misc/heredoc3.tests +++ b/shell/hush_test/hush-heredoc/heredoc3.tests | |||
diff --git a/shell/hush_test/hush-misc/heredoc4.right b/shell/hush_test/hush-heredoc/heredoc4.right index 371b092e2..371b092e2 100644 --- a/shell/hush_test/hush-misc/heredoc4.right +++ b/shell/hush_test/hush-heredoc/heredoc4.right | |||
diff --git a/shell/hush_test/hush-misc/heredoc4.tests b/shell/hush_test/hush-heredoc/heredoc4.tests index 642ddb324..642ddb324 100755 --- a/shell/hush_test/hush-misc/heredoc4.tests +++ b/shell/hush_test/hush-heredoc/heredoc4.tests | |||
diff --git a/shell/hush_test/hush-heredoc/heredoc5.right b/shell/hush_test/hush-heredoc/heredoc5.right new file mode 100644 index 000000000..74110e3b5 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc5.right | |||
@@ -0,0 +1,9 @@ | |||
1 | exit EOF-f | ||
2 | " | ||
3 | echo 1 | ||
4 | echo Hello World | ||
5 | moo | ||
6 | EOF-f | ||
7 | EOF-f f | ||
8 | EOF-f | ||
9 | Ok | ||
diff --git a/shell/hush_test/hush-heredoc/heredoc5.tests b/shell/hush_test/hush-heredoc/heredoc5.tests new file mode 100755 index 000000000..e619bded1 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc5.tests | |||
@@ -0,0 +1,12 @@ | |||
1 | f=1 | ||
2 | cat <<- EOF-f | ||
3 | exit EOF-f | ||
4 | " | ||
5 | echo $f | ||
6 | echo `echo Hello World` | ||
7 | moo | ||
8 | EOF-f | ||
9 | EOF-f f | ||
10 | EOF-f | ||
11 | EOF-f | ||
12 | echo Ok | ||
diff --git a/shell/hush_test/hush-misc/heredoc_backslash1.right b/shell/hush_test/hush-heredoc/heredoc_backslash1.right index 6a6114821..6a6114821 100644 --- a/shell/hush_test/hush-misc/heredoc_backslash1.right +++ b/shell/hush_test/hush-heredoc/heredoc_backslash1.right | |||
diff --git a/shell/hush_test/hush-misc/heredoc_backslash1.tests b/shell/hush_test/hush-heredoc/heredoc_backslash1.tests index 501af5490..501af5490 100755 --- a/shell/hush_test/hush-misc/heredoc_backslash1.tests +++ b/shell/hush_test/hush-heredoc/heredoc_backslash1.tests | |||
diff --git a/shell/hush_test/hush-misc/heredoc_huge.right b/shell/hush_test/hush-heredoc/heredoc_huge.right index 11740f674..11740f674 100644 --- a/shell/hush_test/hush-misc/heredoc_huge.right +++ b/shell/hush_test/hush-heredoc/heredoc_huge.right | |||
diff --git a/shell/hush_test/hush-misc/heredoc_huge.tests b/shell/hush_test/hush-heredoc/heredoc_huge.tests index c2ec2817b..c2ec2817b 100755 --- a/shell/hush_test/hush-misc/heredoc_huge.tests +++ b/shell/hush_test/hush-heredoc/heredoc_huge.tests | |||