summaryrefslogtreecommitdiffstats
path: root/doc/exec.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-03-31 10:38:25 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-03-31 10:38:25 (GMT)
commit4c25696376a8c5d1f66c51a06193e8dc815287f7 (patch)
treed9d8367476dd8deff3bebfb6f81b295845b91ee0 /doc/exec.n
parent2dab8fa488cce34d6dc5538612f1b1fba01c8ab5 (diff)
parent9406745440cf6387d6aaa25d4b595fba069cf5d0 (diff)
downloadtcl-4c25696376a8c5d1f66c51a06193e8dc815287f7.zip
tcl-4c25696376a8c5d1f66c51a06193e8dc815287f7.tar.gz
tcl-4c25696376a8c5d1f66c51a06193e8dc815287f7.tar.bz2
merge core-8-branch
Diffstat (limited to 'doc/exec.n')
-rw-r--r--doc/exec.n6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/exec.n b/doc/exec.n
index 373b980..3cfc29d 100644
--- a/doc/exec.n
+++ b/doc/exec.n
@@ -22,6 +22,10 @@ of one or more subprocesses to execute.
The arguments take the form of a standard shell pipeline
where each \fIarg\fR becomes one word of a command, and
each distinct command becomes a subprocess.
+The result of the command is the standard output of the final subprocess in
+the pipeline, interpreted using the system \fBencoding\fR; to use any other
+encoding (especially including binary data), the pipeline must be
+\fBopen\fRed, configured and read explicitly.
.PP
If the initial arguments to \fBexec\fR start with \fB\-\fR then
they are treated as command-line switches and are not part
@@ -411,7 +415,9 @@ With the file \fIcmp.bat\fR looking something like:
.CS
@gcc %*
.CE
+.PP
or like another variant using single parameters:
+.PP
.CS
@gcc %1 %2 %3 %4 %5 %6 %7 %8 %9
.CE