https://bugs.winehq.org/show_bug.cgi?id=49556
--- Comment #1 from bronek kenorb@gmail.com --- Furthermore, since filever.exe prints the output correctly, but crashes (it reads starting debugger, but it never starts the debugger), I'm either interested in getting the output or forcing to disable Wine debugger like in https://unix.stackexchange.com/q/596552
So here is the working example: $ wine filever /v metaeditor64.exe 2>/dev/null | grep -w ProductVersion ProductVersion 5.0.0.2361
But the one which is crashing, it doesn't produce output on the stdout for some reason.
So this produces output without grep: $ wine filever /v terminal64.exe 2>/dev/null ... ProductVersion 5.0.0.2361 ...
But it doesn't work with grep anymore: $ wine filever /v terminal64.exe | grep -w ProductVersion wine: Unhandled page fault on write access to 6C616E6D at address 7BC284E6 (thread 00b0), starting debugger... 00b0:err:seh:NtRaiseException Unhandled exception code c0000005 flags 0 addr 0x7bc284e6
I expect to grep the output, despite the crash (since it's shown without grep). I've checked and the app output is sent to stdout, but adding pipe, it doesn't produce the output anymore. It's very confusing.
The binary which I'm testing, can be downloaded from: https://github.com/EA31337/MT-Platforms/releases/download/5.0.0.2361/mt-5.0....