about summary refs log tree commit diff
path: root/Test/D03procsubst.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/D03procsubst.ztst')
-rw-r--r--Test/D03procsubst.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst
index 88fa902bb..c763f6e0f 100644
--- a/Test/D03procsubst.ztst
+++ b/Test/D03procsubst.ztst
@@ -107,3 +107,11 @@
 >third: This becomes argument three
 >fourth: and this argument four
 
+  () {
+     # Make sure we don't close the file descriptor too early
+     eval 'print "Execute a complicated command first" | sed s/command/order/'
+     cat $1
+  } <(echo This line was brought to you by the letters F and D)
+0:Process substitution as anonymous function argument
+>Execute a complicated order first
+>This line was brought to you by the letters F and D