diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2021-03-30 10:17:09 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2021-03-30 10:17:09 (GMT) |
commit | 107f7173d2bb714caaeda695f44582bdb1b3f17d (patch) | |
tree | 914c55818fad5c0f4e19dda4ebdc81bae1aba298 /doc/exec.n | |
parent | 1f1f43fcd2bfa68c8bff1a9d6dbb8ecab4be43e7 (diff) | |
parent | 73953be8b1584077829153afd6a58d2965e9f60c (diff) | |
download | tcl-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.n | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |