On Wed, Jun 23, 2010 at 12:08:20PM +0200, Werner Fink wrote:
>
> Yet an other version of the patch to avoid trouble with the
> coproc builtin tested out in tests/coproc.tests. There is one
> difference more with tests/redir.tests at
>
> exit 3 | $EXIT > $TMPDIR/null-redir-e
> echo $? -- ${PIPESTATUS[@]}
> testf $TMPDIR/null-redir-e
>
> exit 4 | > $TMPDIR/null-redir-f
> echo $? -- ${PIPESTATUS[@]}
> testf $TMPDIR/null-redir-f
>
> which now reports
>
> 0 -- 3 0
> 0 -- 4 0
>
> instead of
>
> 0 -- 0
> 0 -- 0
>
> but seems to me ok.
One change more is required for an interactive bash
that is that building pipes used for pgrps synchronization
should be stop for the last command as this last one
is now the parent its self.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr