As the exit code that comes after running a program is from the shell of the computer, this problem may be arising due to shell installation not done right. To diagnose any issues that come forth due to the computer’s shell, you can search on the internet for the specific shell, like bash shell, kourne shell etc. and its exit code.