I have a program which is displaying some output when run in the Windows console (conhost.exe) and no output at all when run under Cygwin with the exact same argument.
What could cause such an issue ?
Also I tested called $ C:/Windows/zip.exe --help
and they both returned the same output. (maybe this is not standard but error output though)
The command line is:
./Bin/Release/MyExe.exe regtest ./QCE/RegressionTests/AutoTests/AutoGenerated/T1/RegTest_PV_Loan.tst
The program is a non standard program for which we do not have the source code.
EDIT: I have been told that the program checks if it is running in a console using this call which returns false in Cygwin:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683167(v=vs.85).aspx
The program was checking if it was running in console mode using the function GetConsoleMode
. Unfortunately this returns false in bash under Cygwin.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683167(v=vs.85).aspx