-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echo $? doesnt give me a '0' in windows. #2478
Comments
The answer is simple, google is your friend... When developing on Windows, you have to always keep in mind that it is posixly-stupid
The first clue that you're not actually accessing a variable is that the content after most of the IEEE documentation for You have to access a variable called |
2 other things to keep in mind... exit status is always a number, not just zero or "non-zero", so the exit status only applies to what is EXACTLY preceding the print of the exit status, not just the last "major" command or "only if there is a failure". If your example were to actually print the exit status when you intended to, it would only be testing the result of example:
|
Okay sorry i know there's another closed thread mentioning something similar... but even when i use the 1.12.1 version... i still get the error of non 0 when i key in "$?"
#2212
#2211
(scikit-build/ninja-python-distributions#157 (comment))
what other information should i look at to troubleshoot this?
The text was updated successfully, but these errors were encountered: