summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authoruniocto <serit142sa33go@gmail.com>2021-05-11 20:47:05 (GMT)
committerGitHub <noreply@github.com>2021-05-11 20:47:05 (GMT)
commit5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f (patch)
treeafb7f404d673392cb55fa326714f0c28c0a225de /Doc/library/os.rst
parent12e7d10dfd28d4e26304e2c06b2e41c7418ec6f3 (diff)
downloadcpython-5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f.zip
cpython-5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f.tar.gz
cpython-5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f.tar.bz2
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016)
* Document os-system, subprocess Patch * Update Doc/library/os.rst Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 6f9f321..24ba153 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -4211,12 +4211,12 @@ written in Python, such as a mail server's external command delivery program.
the Standard C function :c:func:`system`, and has the same limitations.
Changes to :data:`sys.stdin`, etc. are not reflected in the environment of
the executed command. If *command* generates any output, it will be sent to
- the interpreter standard output stream.
+ the interpreter standard output stream. The C standard does not
+ specify the meaning of the return value of the C function, so the return
+ value of the Python function is system-dependent.
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 of the return value of the C :c:func:`system` function, so the return
- value of the Python function is system-dependent.
+ format specified for :func:`wait`.
On Windows, the return value is that returned by the system shell after
running *command*. The shell is given by the Windows environment variable