> There is a race condition.
>
> When the redirection happens, the pipe output fd is closed so that
> the head will get EOF.
>
> However, at the same time /bin/echo writes test to /tmp/file.
>
> However, if you are running ksh93, then doing
>        set -o pipefile
> before the pipeline will eliminate the race condition since
> the parent shell that waits for the pipeline needs to
> know the exit status for /bin/echo before the pipeline command
> completes.

Thanks, David. Now it's clear.

Leonardo
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to