diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-09-23 17:03:16 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-09-23 17:03:16 +0000 |
commit | ad2bd42c858aa7236e7b7404806d16b5b0efb6ac (patch) | |
tree | 3c7fd50ab1014769c6d59d15145aefca37ed02be /Test | |
parent | ced5aab522df2754c2fa4581c3538c2cb6d4c1e1 (diff) | |
download | zsh-ad2bd42c858aa7236e7b7404806d16b5b0efb6ac.tar.gz zsh-ad2bd42c858aa7236e7b7404806d16b5b0efb6ac.tar.xz zsh-ad2bd42c858aa7236e7b7404806d16b5b0efb6ac.zip |
21758: optimise =(<<<...) to run within the shell.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A04redirect.ztst | 8 |
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. |