about summary refs log tree commit diff
path: root/Test/A04redirect.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-09-23 17:03:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-09-23 17:03:16 +0000
commitad2bd42c858aa7236e7b7404806d16b5b0efb6ac (patch)
tree3c7fd50ab1014769c6d59d15145aefca37ed02be /Test/A04redirect.ztst
parentced5aab522df2754c2fa4581c3538c2cb6d4c1e1 (diff)
downloadzsh-ad2bd42c858aa7236e7b7404806d16b5b0efb6ac.tar.gz
zsh-ad2bd42c858aa7236e7b7404806d16b5b0efb6ac.tar.xz
zsh-ad2bd42c858aa7236e7b7404806d16b5b0efb6ac.zip
21758: optimise =(<<<...) to run within the shell.
Diffstat (limited to 'Test/A04redirect.ztst')
-rw-r--r--Test/A04redirect.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index b80556797..06c380bdb 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -269,3 +269,11 @@
   exec {myfd}>&-
 1:Error closing file descriptor using readonly variable
 ?(eval):4: can't close file descriptor from readonly parameter myfd
+
+# This tests the here-string to filename optimisation; we can't
+# test that it's actually being optimised, but we can test that it
+# still works.
+  cat =(<<<$'This string has been replaced\nby a file containing it.\n')
+0:Optimised here-string to filename
+>This string has been replaced
+>by a file containing it.