mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40094: Fix which.py script exit code (GH-19286)
It now uses os.waitstatus_to_exitcode() to convert os.system() exit status into an exit code.
This commit is contained in:
parent
9a679a0e47
commit
e7c98f08e2
2 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,7 @@ def main():
|
|||
msg(filename + ': not executable')
|
||||
if longlist:
|
||||
sts = os.system('ls ' + longlist + ' ' + filename)
|
||||
sts = os.waitstatus_to_exitcode(sts)
|
||||
if sts: msg('"ls -l" exit status: ' + repr(sts))
|
||||
if not ident:
|
||||
msg(prog + ': not found')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue