about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/my-tap-lib.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/my-tap-lib.sh b/t/my-tap-lib.sh
index 2d0c1a9..eced1e0 100644
--- a/t/my-tap-lib.sh
+++ b/t/my-tap-lib.sh
@@ -188,9 +188,10 @@ then
 
         (
                 # use a subshell so seds are not waitable
-                $SED -e 's/^/#: /' $t_stdout &
-                $SED -e 's/^/#! /' $t_stderr &
+                $SED -e 's/^/#: /' < $t_stdout &
+                $SED -e 's/^/#! /' < $t_stderr &
         ) &
+        wait
         exec > $t_stdout 2> $t_stderr
 else
         exec > /dev/null 2> /dev/null