[Python-checkins] python/dist/src/Doc/lib libos.tex,1.125,1.126

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 20 May 2003 09:16:01 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv2717/python/Doc/lib

Modified Files:
	libos.tex 
Log Message:
Straighten out the docs for os.system(); the Unix and Windows behaviors
really can't be smushed together.

Bugfix candidate.


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.125
retrieving revision 1.126
diff -C2 -d -r1.125 -r1.126
*** libos.tex	13 May 2003 18:01:19 -0000	1.125
--- libos.tex	20 May 2003 16:15:58 -0000	1.126
***************
*** 1515,1523 ****
  same limitations.  Changes to \code{posix.environ}, \code{sys.stdin},
  etc.\ are not reflected in the environment of the executed command.
! The return value is the exit status of the process encoded in the
! format specified for \function{wait()}, except on Windows 95 and 98,
! where it is always \code{0}.  Note that \POSIX{} does not specify the
! meaning of the return value of the C \cfunction{system()} function,
! so the return value of the Python function is system-dependent.
  Availability: \UNIX, Windows.
  \end{funcdesc}
--- 1515,1531 ----
  same limitations.  Changes to \code{posix.environ}, \code{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 \function{wait()}.  Note that \POSIX{} does not
! specify the meaning of the return value of the C \cfunction{system()}
! function, so the return value of the Python function is system-dependent.
! 
! On Windows the return value is that returned by the system shell after
! running \var{command}, given by the Windows environment variable
! \code{COMSPEC}: on \code{command.com} systems (Windows 95, 98 and ME)
! this is always \code{0}; on \code{cmd.exe} systems (Windows NT, 2000
! and XP) this is the exit status of the command run; on systems using
! a non-native shell, consult your shell documentation.
! 
  Availability: \UNIX, Windows.
  \end{funcdesc}