This fixes cases where "not not <command>" is supposed to return
only the error codes 0 or 1, but after efee57925c,
it passed the original error code through.
This was visible on AIX in the shtest-output-printing.py testcase,
where 'wc' returns 2, while it returns 1 on other platforms, and the
test required "not not" to normalize it to 1.
8 lines
100 B
Python
8 lines
100 B
Python
#!/usr/bin/env python
|
|
|
|
import print_environment
|
|
import sys
|
|
|
|
print_environment.execute()
|
|
sys.exit(2)
|