Re: Transcode version checking bug

Jörn Reder <[email protected]>
Newsgroups gmane.comp.video.dvdrip.user
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBG3lRi2hNi0Chc9HMRA8A3AJ4pHqzkZLeoHg1NK4OyyLkIQ7LEnQCZAY1v
N6k+tX0GrMxGBkYW+JUnd2A=
=iDMe
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.