diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-29 11:28:49 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-29 11:28:49 (GMT) |
commit | 18476c905183d0b6cfbac7a85e8543265cf9fae0 (patch) | |
tree | db7d2280643a39b2805c9c90cc8dffc8673fc107 /doc/exec.n | |
parent | 77f37026419a7e05c71c233d137412f77aee2825 (diff) | |
download | tcl-18476c905183d0b6cfbac7a85e8543265cf9fae0.zip tcl-18476c905183d0b6cfbac7a85e8543265cf9fae0.tar.gz tcl-18476c905183d0b6cfbac7a85e8543265cf9fae0.tar.bz2 |
GOOBE the docs some more.
Diffstat (limited to 'doc/exec.n')
-rw-r--r-- | doc/exec.n | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ '\" 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.20 2007/10/29 01:42:18 dkf Exp $ +'\" RCS: @(#) $Id: exec.n,v 1.21 2007/10/29 11:28:50 dkf Exp $ '\" .so man.macros .TH exec n 8.5 Tcl "Tcl Built-In Commands" @@ -145,7 +145,7 @@ 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 error messages describing the abnormal terminations; the -\fB-errorcode\fR return option will contain additional information +\fB\-errorcode\fR return option will contain additional information about the last abnormal termination encountered. If any of the commands writes to its standard error file and that standard error is not redirected @@ -366,7 +366,7 @@ To execute a simple program and get its result: .PP To execute a program that can return a non-zero result, you should wrap the call to \fBexec\fR in \fBcatch\fR and check the contents -of the \fB-errorcode\fR return option if you have an error: +of the \fB\-errorcode\fR return option if you have an error: .CS set status 0 if {[catch {\fBexec\fR grep foo bar.txt} results options]} { |