https://bugs.winehq.org/show_bug.cgi?id=57600
--- Comment #2 from Angel angel.narvaez@civiceye.com --- 1. When opening the app in windows from cmd.exe, cmd.exe spawns a new console window where the app/log is showing 2. Yes. I did try wine <app> | cat.
I'm attaching a couple of screenshots (one of the app running under windows, and one of the app running under wine). I think you are correct in that wine9 seems to match the Windows behavior closer than wine8 for console inheritance since both platforms create a new windows console window. I just seems odd that wine <app> | cat doesn't produce the console output.
One thing I had tried when I filed a ticket in crossover is this: ----------------- I downloaded the source to my machine and reverted the changes to dlls/ntdll/unix/env.c in the commit (https://gitlab.winehq.org/wine/wine/-/commit/4b63e888945b8ada2ddc043e435b935...).
After recompiling and running with "wine app | cat" the unix console does show the output as expected. -----------------
Not sure if this change would affect console inheritance behavior or not but it does produce the desired output ????