Attachment "685485.patch" to
ticket [685485ffff]
added by
kennykb
2003-02-14 04:51:14.
Index: doc/tclsh.1
===================================================================
RCS file: /cvsroot/tcl/tcl/doc/tclsh.1,v
retrieving revision 1.7
diff -u -r1.7 tclsh.1
--- doc/tclsh.1 23 Jul 2002 18:17:12 -0000 1.7
+++ doc/tclsh.1 13 Feb 2003 21:40:07 -0000
@@ -39,8 +39,18 @@
Instead of reading commands from standard input \fBtclsh\fR will
read Tcl commands from the named file; \fBtclsh\fR will exit
when it reaches the end of the file.
-There is no automatic evaluation of \fB.tclshrc\fR in this
-case, but the script file can always \fBsource\fR it if desired.
+.VS 8.4
+The end of the file may be marked either by the physical end of
+the medium, or by the character, '\\032' ('\\u001a', control-Z).
+If this character is present in the file, the \fBtclsh\fR application
+will read text up to but not including the character. An application
+that requires this character in the file may safely encode it as
+``\\032'', ``\\x1a'', or ``\\u001a''; or may generate it by use of commands
+such as \fBformat\fR or \fBbinary\fR.
+.VE
+There is no automatic evaluation of \fB.tclshrc\fR when the name
+of a script file is presented on the \fBtclsh\fR command
+line, but the script file can always \fBsource\fR it if desired.
.PP
If you create a Tcl script in a file whose first line is
.CS