diff options
author | hobbs <hobbs> | 2000-09-06 16:56:22 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-09-06 16:56:22 (GMT) |
commit | bd320fcf2b9943b549aa4c15018a87325bec5901 (patch) | |
tree | 2a9e86e2934ae36236883607df5b357dd97eb4b9 /doc | |
parent | a8b81082d72f94260f0c9f93c2a21be6980d57ad (diff) | |
download | tcl-bd320fcf2b9943b549aa4c15018a87325bec5901.zip tcl-bd320fcf2b9943b549aa4c15018a87325bec5901.tar.gz tcl-bd320fcf2b9943b549aa4c15018a87325bec5901.tar.bz2 |
* doc/source.n:
* doc/Eval.3: added extra note about how to safe use ^Z in code,
as it is now a cross-platform (was just Windows) EOF char.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Eval.3 | 5 | ||||
-rw-r--r-- | doc/source.n | 5 |
2 files changed, 8 insertions, 2 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: Eval.3,v 1.7 2000/05/11 00:16:52 hobbs Exp $ +'\" RCS: @(#) $Id: Eval.3,v 1.8 2000/09/06 16:56:22 hobbs Exp $ '\" .so man.macros .TH Tcl_Eval 3 8.1 Tcl "Tcl Library Procedures" @@ -104,6 +104,9 @@ If the file couldn't be read then a Tcl error is returned to describe why the file couldn't be read. .VS 8.4 The eofchar for files is '\\32' (^Z) for all platforms. +If you require a ``^Z'' in code for string comparison, you can use +``\\032'' or ``\\u001a'', which will be safely substituted by the Tcl +interpreter into ``^Z''. .VE 8.4 .PP \fBTcl_EvalObjv\fR executes a single pre-parsed command instead of a diff --git a/doc/source.n b/doc/source.n index 6a78622..38b71b5 100644 --- a/doc/source.n +++ b/doc/source.n @@ -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: source.n,v 1.3 2000/05/11 00:16:52 hobbs Exp $ +'\" RCS: @(#) $Id: source.n,v 1.4 2000/09/06 16:56:22 hobbs Exp $ '\" .so man.macros .TH source n "" Tcl "Tcl Built-In Commands" @@ -38,6 +38,9 @@ The end-of-file character for files is '\\32' (^Z) for all platforms. The source command will read files up to this character. This restriction does not exist for the \fBread\fR or \fBgets\fR commands, allowing for files containing code and data segments (scripted documents). +If you require a ``^Z'' in code for string comparison, you can use +``\\032'' or ``\\u001a'', which will be safely substituted by the Tcl +interpreter into ``^Z''. .VE 8.4 .PP The \fI\-rsrc\fR and \fI\-rsrcid\fR forms of this command are only |