0bcb572b2a
Also included tcl8.5 documentation version new version 8.3.4 8.3.5 8.4a1 8.4.7 - 8.5a1
1.7 KiB
1.7 KiB
--- tcl8.4.7/html/UserCmd/tclsh.htm.orig Tue Jul 27 05:21:39 2004
+++ tcl8.4.7/html/UserCmd/tclsh.htm Thu Nov 18 12:48:14 2004
@@ -4,7 +4,7 @@
SYNOPSIS
DESCRIPTION
SCRIPT FILES
@@ -23,7 +23,7 @@
+tclsh8.4 ?fileName arg arg ...?
- tclsh - Simple shell containing Tcl interpreter
-
-
- tclsh ?fileName arg arg ...? +
- tclsh8.4 ?fileName arg arg ...?
NAME
tclsh - Simple shell containing Tcl interpreterSYNOPSIS
-tclsh ?fileName arg arg ...?+tclsh8.4 ?fileName arg arg ...?
DESCRIPTION
Tclsh is a shell-like application that reads Tcl commands from its standard input or from a file and evaluates them. @@ -56,7 +56,7 @@ line, but the script file can always source it if desired.If you create a Tcl script in a file whose first line is -
#!/usr/local/bin/tclsh+
#!/usr/local/bin/tclsh8.4then you can invoke the script file directly from your shell if you mark the file as executable. This assumes that tclsh has been installed in the default @@ -70,7 +70,7 @@ following three lines:
#!/bin/sh # the next line restarts using tclsh \ -exec tclsh "$0" "$@"+exec tclsh8.4 "$0" "$@" This approach has three advantages over the approach in the previous paragraph. First, the location of the tclsh binary doesn't have to be hard-wired into the script: it can be anywhere in your shell