diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-06-10 18:21:26 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-06-10 18:28:20 -0700 |
commit | b73218100032ead24360d33361fefa914074f30a (patch) | |
tree | 77415156747ce20b90e945ebe38569bc0c3f21ca /t/my-tap-lib.sh | |
parent | d65fb5896d4c9d019b31834c131b5fb0306ba10e (diff) | |
download | rainbows-b73218100032ead24360d33361fefa914074f30a.tar.gz |
Don't try to redirect until we know our FIFO consumers are ready for us. This only seems to happen with bash and not ksh... commit d0a0883eaaeec37800ca5cd07647b7b66a00c453 in Unicorn
Diffstat (limited to 't/my-tap-lib.sh')
-rw-r--r-- | t/my-tap-lib.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/my-tap-lib.sh b/t/my-tap-lib.sh index ada77ac..3270095 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 |