summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-14 15:57:46 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-14 15:57:46 (GMT)
commit647e9d2652663b9c100be51e22fd6cfc76de95e5 (patch)
tree28fb4f50361885ea4eb50066ba842340de37b983
parente1254d748dc008f9d9b9ffb759139c2ee49101f2 (diff)
downloadcpython-647e9d2652663b9c100be51e22fd6cfc76de95e5.zip
cpython-647e9d2652663b9c100be51e22fd6cfc76de95e5.tar.gz
cpython-647e9d2652663b9c100be51e22fd6cfc76de95e5.tar.bz2
#7126: os.environ changes *do* take effect in subprocesses started with os.system().
-rw-r--r--Doc/library/os.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 260b3b3..432de12 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1836,9 +1836,9 @@ written in Python, such as a mail server's external command delivery program.
.. function:: system(command)
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
- to :data:`os.environ`, :data:`sys.stdin`, etc. are not reflected in the
- environment of the executed command.
+ the Standard C function :cfunc:`system`, and has the same limitations.
+ Changes :data:`sys.stdin`, etc. are not reflected in the environment of the
+ executed command.
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