summaryrefslogtreecommitdiffstats
path: root/doc/exec.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-03-30 10:17:09 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-03-30 10:17:09 (GMT)
commit107f7173d2bb714caaeda695f44582bdb1b3f17d (patch)
tree914c55818fad5c0f4e19dda4ebdc81bae1aba298 /doc/exec.n
parent1f1f43fcd2bfa68c8bff1a9d6dbb8ecab4be43e7 (diff)
parent73953be8b1584077829153afd6a58d2965e9f60c (diff)
downloadtcl-107f7173d2bb714caaeda695f44582bdb1b3f17d.zip
tcl-107f7173d2bb714caaeda695f44582bdb1b3f17d.tar.gz
tcl-107f7173d2bb714caaeda695f44582bdb1b3f17d.tar.bz2
Improve documentation for exec and open, especially in relation to binary pipelines
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