summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/A04redirect.ztst24
1 files changed, 24 insertions, 0 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index b5b65cf5d..1e17dddd4 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -176,6 +176,30 @@
>tab\stripping
>Last line
+ heretest() {
+ print First line
+ cat <<-HERE
+ $foo\\
+ $foo
+ some\\ \
+ stuff
+ to\
+ test \\
+ more backslash craziness\\\\\\\\\
+ wild
+ HERE
+ print Last line
+ }
+ heretest
+0:No line continuation in here-document on escaped backslash
+>First line
+>bar\
+>bar
+>some\ stuff
+>to test \
+>more backslash craziness\\\\ wild
+>Last line
+
#
# exec tests: perform these in subshells so if they fail the
# shell won't exit.