I think this can be avoided. Let use stderr to print this, this way you can use redirections with every program you want.
I will add one more remark (!) : I dont know many programs that expect "Wine version" in their output. If they are disturbed by this, this is a huge design problem.
-----Message d'origine----- De : Francois Gouget [mailto:fgouget@free.fr] Envoyé : mardi 1 juillet 2003 23:57 À : wine-devel@winehq.org Objet : Re: [RESENT] Always print version on startup
Let me object too then.
This patch will break all scripts that use regedit to export part of the registry to stdout. It will also break all applications that run 'uninstaller --list' and then parse the output to determine what Windows applications are installed. It will also break all Winelib applications that print anything to stdout that then needs to be parsed by a script or some other program. Of course we have each of these cases in CrossOver.
Then it will break all Windows application that analyze the output of another Windows application. For instance I expect Visual C++'s nmake+cl will not work anymore (as well as other make+compiler cases). Even compiling from the Visual C++ IDE may stop working.
Finally it's a matter of what Wine is about. Wine is about transparently running Windows applications. Wine itself should be as invisible as possible, it should just get out of the way. We went out of our way (well iirc Alexandre did most of that work) to avoid having the Wine command line options interfer with the application's command line options. Printing garbage (from the Windows application point of vue) on stdout would be a step backwards.