summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/A04redirect.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index d60519064..993138e7d 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -708,3 +708,17 @@
cat <&$testfd
0:Regression test for here document with fd declarator
> This is, in some sense, a here document.
+
+ (setopt noclobber clobberempty
+ rm -f foo
+ touch foo
+ print Works >foo
+ cat foo
+ print Works not >foo
+ # Make sure the file was not harmed
+ cat foo
+ )
+0:CLOBBER_EMPTY
+>Works
+>Works
+?(eval):6: file exists: foo