]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't describe this module as being a popen() wrapper; that's a little
authorFred Drake <fdrake@acm.org>
Thu, 22 Apr 1999 15:19:01 +0000 (15:19 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 22 Apr 1999 15:19:01 +0000 (15:19 +0000)
confusing.  This is clearly Unix-specific; label it as such.

Doc/lib/libcommands.tex

index 6b49faed081eb14540e6a68d7a5a29c976994f18..cb00b2fcba4096ff2c358e1f7401bc1ee99b84f7 100644 (file)
@@ -1,19 +1,18 @@
 \section{\module{commands} ---
-         Wrapper functions for \function{os.popen()}.}
+         Utility functions for external commands}
+
 \declaremodule{standard}{commands}
+  \platform{Unix}
+\modulesynopsis{Utility functions for running external commands.}
 \sectionauthor{Sue Williams}{sbw@provis.com}
 
-\modulesynopsis{Wrapper functions for \function{os.popen()}.}
-
 
 The \module{commands} module contains wrapper functions for
 \function{os.popen()} which take a system command as a string and
 return any output generated by the command and, optionally, the exit
 status.
 
-The \module{commands} module is only usable on systems which support 
-\function{os.popen()} (currently \UNIX{}).  It defines the following
-functions:
+The \module{commands} module defines the following functions:
 
 
 \begin{funcdesc}{getstatusoutput}{cmd}
@@ -22,7 +21,7 @@ return a 2-tuple \code{(\var{status}, \var{output})}.  \var{cmd} is
 actually run as \code{\{ \var{cmd} ; \} 2>\&1}, so that the returned
 output will contain output or error messages. A trailing newline is
 stripped from the output. The exit status for the command can be
-interpreted according to the rules for the \C{} function
+interpreted according to the rules for the C function
 \cfunction{wait()}.
 \end{funcdesc}