Kaydet (Commit) 647e9d26 authored tarafından Georg Brandl's avatar Georg Brandl

#7126: os.environ changes *do* take effect in subprocesses started with os.system().

üst e1254d74
...@@ -1836,9 +1836,9 @@ written in Python, such as a mail server's external command delivery program. ...@@ -1836,9 +1836,9 @@ written in Python, such as a mail server's external command delivery program.
.. function:: system(command) .. function:: system(command)
Execute the command (a string) in a subshell. This is implemented by calling Execute the command (a string) in a subshell. This is implemented by calling
the Standard C function :cfunc:`system`, and has the same limitations. Changes the Standard C function :cfunc:`system`, and has the same limitations.
to :data:`os.environ`, :data:`sys.stdin`, etc. are not reflected in the Changes :data:`sys.stdin`, etc. are not reflected in the environment of the
environment of the executed command. executed command.
On Unix, the return value is the exit status of the process encoded in the On Unix, the return value is the exit status of the process encoded in the
format specified for :func:`wait`. Note that POSIX does not specify the meaning format specified for :func:`wait`. Note that POSIX does not specify the meaning
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment