From cda21a28e6998bb3e6170a8f496b7563c8483ec6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 19 Jul 2013 12:09:32 +0100 Subject: 31536 with additions: Fix hang in previous process substitution fix. Close applicable file descriptors when waiting for a job. --- Test/D03procsubst.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test/D03procsubst.ztst') 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 -- cgit 1.4.1