From fcd2c9243fcb0e29098da9d9f815373d73d6b192 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 23 May 2007 11:21:10 +0000 Subject: 23460: fix problem with ( stuff ) >multio1 >multio2 --- Test/E01options.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test/E01options.ztst') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 1fbe0cc93..0ce82b3ab 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -655,6 +655,18 @@ >This is in1 >This is in2 +# This is trickier than it looks. There's a hack at the end of +# execcmd() to catch the multio processes attached to the +# subshell, which otherwise sort of get lost in the general turmoil. +# Without that, the multios aren't synchronous with the subshell +# or the main shell starting the "cat", so the output files appear +# empty. + setopt multios + ( echo hello ) >multio_out1 >multio_out2 && cat multio_out* +0:Multios attached to a subshell +>hello +>hello + # tried this with other things, but not on its own, so much. unsetopt nomatch print with nonomatch: flooble* -- cgit 1.4.1