##// END OF EJS Templates
Correct exit code from os.system() on Unix....
Thomas Kluyver -
Show More
@@ -2246,6 +2246,10 b' class InteractiveShell(SingletonConfigurable):'
2246 else:
2246 else:
2247 cmd = py3compat.unicode_to_str(cmd)
2247 cmd = py3compat.unicode_to_str(cmd)
2248 ec = os.system(cmd)
2248 ec = os.system(cmd)
2249 # The high byte is the exit code, the low byte is a signal number
2250 # that we discard for now. See the docs for os.wait()
2251 if ec > 255:
2252 ec >>= 8
2249
2253
2250 # We explicitly do NOT return the subprocess status code, because
2254 # We explicitly do NOT return the subprocess status code, because
2251 # a non-None value would trigger :func:`sys.displayhook` calls.
2255 # a non-None value would trigger :func:`sys.displayhook` calls.
General Comments 0
You need to be logged in to leave comments. Login now