summaryrefslogtreecommitdiffstats
path: root/doc/exec.n
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2023-11-30 19:23:50 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2023-11-30 19:23:50 (GMT)
commit516659e2fccead0e1588df36883c1386e5ad6a82 (patch)
treec660af03e8de75bcfe9ccd27c18a03fe8c25885c /doc/exec.n
parentf22a7c3103ade53a94b1382001fbaa4d49da3fd9 (diff)
downloadtcl-516659e2fccead0e1588df36883c1386e5ad6a82.zip
tcl-516659e2fccead0e1588df36883c1386e5ad6a82.tar.gz
tcl-516659e2fccead0e1588df36883c1386e5ad6a82.tar.bz2
MS-Win: document the exec %var% re-allowance. Ticket [fb2fa9b3f6]
Diffstat (limited to 'doc/exec.n')
-rw-r--r--doc/exec.n13
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/exec.n b/doc/exec.n
index a0008ad..eb97072 100644
--- a/doc/exec.n
+++ b/doc/exec.n
@@ -254,22 +254,21 @@ Examples are:
ENV X: CONTENT OF X
.CE
The following formatting is automatically performed on any
-argument item:
-.IP \(bu 3
-Avoid subprogram execution:
+argument item to avoid subprogram execution:
Any special character argument containing a special character (\fB&\fR, \fB|\fR,
\fB^\fR, \fB<\fR, \fB>\fR, \fB!\fR, \fB(\fR, \fB)\fR, \fB(\fR, \fB%\fR)
is automatically enclosed in quotes (\fB"\fR). Any data quote is escaped by
insertion of backslash characters.
-.IP \(bu 3
-Avoid environment variable replacement:
-Any appearence of environment variable reference (\fB%\fR) is individually quoted
-by \fB"\fR.
+.PP
+The automatic resolving of environment variables using "\fB%var%\fR" is critical,
+but has more use than danger and is not escaped.
.PP
TCL 8.6.10 refined this quoting by adding quoting for data quotes and individual
quoting of "\fB%\fR".
This may break present scripts which rely on the replacement functionality of
environment variables.
+Thus, the individual quoting of "\fB%\fR" was removed in TCL 8.6.14, as environment
+variables are seen more helpful than a problem.
A solution with command parameters is envisaged for a future release of TCL.
.RE
.PP