summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorPeter Astrand <astrand@lysator.liu.se>2004-11-07 16:38:08 (GMT)
committerPeter Astrand <astrand@lysator.liu.se>2004-11-07 16:38:08 (GMT)
commit3546188123b84bf48c3b83605fec7efdeebf3ace (patch)
treef6272d77940a3d4126c74dd9b7f6e5b564e5ecb3 /Doc/lib
parentdef9d2a17c6f34750f321e88286a08731fdb8b94 (diff)
downloadcpython-3546188123b84bf48c3b83605fec7efdeebf3ace.zip
cpython-3546188123b84bf48c3b83605fec7efdeebf3ace.tar.gz
cpython-3546188123b84bf48c3b83605fec7efdeebf3ace.tar.bz2
Added more documentation about the executable argument.
Fixes #1056441.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libsubprocess.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/libsubprocess.tex b/Doc/lib/libsubprocess.tex
index 14e68aa..01f64ae 100644
--- a/Doc/lib/libsubprocess.tex
+++ b/Doc/lib/libsubprocess.tex
@@ -68,6 +68,13 @@ buffer of (approximately) that size. A negative \var{bufsize} means to
use the system default, which usually means fully buffered. The default
value for \var{bufsize} is \constant{0} (unbuffered).
+The \var{executable} argument specifies the program to execute. It is
+very seldom needed: Usually, the program to execute is defined by the
+\var{args} argument. If \var{shell=True}, the \var{executable}
+argument specifies which shell to use. On \UNIX{}, the default shell
+is /bin/sh. On Windows, the default shell is specified by the COMSPEC
+environment variable.
+
\var{stdin}, \var{stdout} and \var{stderr} specify the executed
programs' standard input, standard output and standard error file
handles, respectively. Valid values are \code{PIPE}, an existing file