Sean Gallagher wrote:
> echo had finished both of it jobs before transcode had written it's version,
> which seems like a race condition but the ; did not seem to indicate that.
>
> I tried the same command with:
>
> echo --transcode_version--; transcode -v; echo --transcode_version--;
>
> replaced with
> echo --transcode_version--; transcode -v; sleep 0.1;
> echo --transcode_version--;
>
> and it worked correctly..
The problem is the mixed output of STDERR and STDOUT. transcode prints
its version number to STDERR, while echo prints to STDOUT. Both are
mixed together by the shell in a non predictable order.
The sleep command workarounds that, but a "transcode -v 2>&1" should do
the trick in a more appropriate way. I'll fix that in the next release.
Thanks for the report.
Regards,
Jörn
--
LINUX - Linux Is Not gnU linuX
pgpTherwv9Jar.pgp
Description: PGP signature
|