summaryrefslogtreecommitdiffstats
path: root/doc/exec.n
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-07-02 23:31:27 (GMT)
committerhobbs <hobbs>2004-07-02 23:31:27 (GMT)
commit2ab4506f34cae724a01ece9dc1c650e5a9b674e9 (patch)
tree2ab62cdf50305b836821c87186431bcd137a4c73 /doc/exec.n
parent1aa82f9d198e68705e1f5a9fd2ff6525e45fb0f4 (diff)
downloadtcl-2ab4506f34cae724a01ece9dc1c650e5a9b674e9.zip
tcl-2ab4506f34cae724a01ece9dc1c650e5a9b674e9.tar.gz
tcl-2ab4506f34cae724a01ece9dc1c650e5a9b674e9.tar.bz2
* generic/tclPipe.c (TclCreatePipeline): applied TIP #202 patch
* doc/exec.n, tests/exec.test: that adds 2>@1 as a special case redirection of stderr to the result output.
Diffstat (limited to 'doc/exec.n')
-rw-r--r--doc/exec.n21
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/exec.n b/doc/exec.n
index db0a35c..d44f28c 100644
--- a/doc/exec.n
+++ b/doc/exec.n
@@ -5,10 +5,10 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: exec.n,v 1.9 2004/04/22 12:55:15 dkf Exp $
+'\" RCS: @(#) $Id: exec.n,v 1.10 2004/07/02 23:31:29 hobbs Exp $
'\"
.so man.macros
-.TH exec n 7.6 Tcl "Tcl Built-In Commands"
+.TH exec n 8.5 Tcl "Tcl Built-In Commands"
.BS
'\" Note: do not modify the .SH NAME line immediately below!
.SH NAME
@@ -111,6 +111,11 @@ Standard error from all commands in the pipeline is
redirected to \fIfileId\fR's file.
The file must have been opened for writing.
.TP 15
+2>@1\0
+Standard error from all commands in the pipeline is redirected to the
+command result. This operator is only valid at the end of the command
+pipeline.
+.TP 15
>&@\0\fIfileId\fR
\fIFileId\fR must be the identifier for an open file, such as the return
value from a previous call to \fBopen\fR.
@@ -120,7 +125,11 @@ The file must have been opened for writing.
.PP
If standard output has not been redirected then the \fBexec\fR
command returns the standard output from the last command
-in the pipeline.
+in the pipeline,
+.VS 8.5
+unless ``2>@1'' was specified, in which case
+standard error is included as well.
+.VE 8.5
If any of the commands in the pipeline exit abnormally or
are killed or suspended, then \fBexec\fR will return an error
and the error message will include the pipeline's output followed by
@@ -258,7 +267,7 @@ the caller must prepend ``\fBcmd.exe /c\0\fR'' to the desired command.
.sp
.RE
.TP
-\fBWindows 95\fR
+\fBWindows 9x\fR
.
When attempting to execute an application, \fBexec\fR first searches for
the name as it was specified. Then, in order, \fB.com\fR, \fB.exe\fR, and
@@ -273,9 +282,9 @@ The directory from which the Tcl executable was loaded.
.br
The current directory.
.br
-The Windows 95 system directory.
+The Windows 9x system directory.
.br
-The Windows 95 home directory.
+The Windows 9x home directory.
.br
The directories listed in the path.
.RE