https://bugs.winehq.org/show_bug.cgi?id=49593
Bug ID: 49593 Summary: inconsistent return code when executable is not found Product: Wine Version: 5.13 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: xantares09@hotmail.com Distribution: ---
When wine is launched to run an inexistent executable file, the exit code is different according to the path name being passed as absolute or relative:
- relative, return code 53: $ wine zz.exe 0024:err:module:__wine_process_init L"C:\windows\system32\zz.exe" not found $ echo $? 53
- absolute, return code 0: $ wine /tmp/zz.exe wine: cannot find L"/tmp/zz.exe" $ echo $? 0
I expected the return code to be also 53 when the file is passed as absolute