From ad2bd42c858aa7236e7b7404806d16b5b0efb6ac Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 23 Sep 2005 17:03:16 +0000 Subject: 21758: optimise =(<<<...) to run within the shell. --- Test/A04redirect.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test/A04redirect.ztst') 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. -- cgit 1.4.1