I'm trying to run a Windows executable via wine. When I first try to run it never runs, but when I attempt to do it again, the program runs.I'd like to make a script to run the program, here's the the important part of the script:EXECUTABLE=$(env XMODIFIERS= wine hl.exe .nomaster -strechaspect)$EXECUTABLEecho Exit Status = $?With this it never gives me the message Exit Status 0, because, wine finishes successfully, but the hl.exe exits with an error because that didn't start in the first try, just the second try as i stated in the beginning.I first thought something like this might do:e=$?if [ $e -ne 0 ]then  echo  echo Exit with Error  echofibut it never shows me the message Exit Status = 0.Can someone help me with how to solve this?
How do I get the exit code of a process, which runs through wine
bash;wine;exit