summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2019-06-24 20:19:19 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2019-06-24 20:19:19 +0100
commit4384fdc7f0b5a1de78af344446fcbb90b7182c9e (patch)
tree2bd41329e19b03588b20d16346bb00948c3fee1b /Test
parent1b1cb4416105e083eaf34379efacfd4cafa77fb0 (diff)
downloadzsh-4384fdc7f0b5a1de78af344446fcbb90b7182c9e.tar.gz
zsh-4384fdc7f0b5a1de78af344446fcbb90b7182c9e.tar.xz
zsh-4384fdc7f0b5a1de78af344446fcbb90b7182c9e.zip
44446: Fix here document with file descriptor declarator.
Add unit test.
Diffstat (limited to 'Test')
-rw-r--r--Test/A04redirect.ztst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index 1e17dddd4..d60519064 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -692,11 +692,19 @@
 >b
 >d
 
-  umask 0777
+  (umask 0777
   cat <<'  HERE'
   look ma, no permissions
   HERE
   cat <<<"it's a miracle"
+  )
 0:Here-{string,document}s succeed with restrictive umask
 >  look ma, no permissions
 >it's a miracle
+
+  exec {testfd}<<'  HERE'
+  This is, in some sense, a here document.
+  HERE
+  cat <&$testfd
+0:Regression test for here document with fd declarator
+>  This is, in some sense, a here document.