From 939d1850c642bdb8f9d2ffbbca689c7f1fe0cbde Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Wed, 19 Dec 2001 19:49:39 +0000 Subject: Add tcl-manual 2001.12.19, documentation for TCL (Tool Command Language). PR: 32925 Submitted by: Edwin Groothuis (edwin@mavetju.org) --- .../files/patch-tcl8.3.4::html::UserCmd::tclsh.htm | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lang/tcl-manual/files/patch-tcl8.3.4::html::UserCmd::tclsh.htm (limited to 'lang/tcl-manual/files/patch-tcl8.3.4::html::UserCmd::tclsh.htm') diff --git a/lang/tcl-manual/files/patch-tcl8.3.4::html::UserCmd::tclsh.htm b/lang/tcl-manual/files/patch-tcl8.3.4::html::UserCmd::tclsh.htm new file mode 100644 index 000000000000..53bc858669f8 --- /dev/null +++ b/lang/tcl-manual/files/patch-tcl8.3.4::html::UserCmd::tclsh.htm @@ -0,0 +1,31 @@ +$FreeBSD$ + +--- tcl8.3.4/html/UserCmd/tclsh.htm.orig Mon Dec 17 01:02:21 2001 ++++ tcl8.3.4/html/UserCmd/tclsh.htm Mon Dec 17 01:02:48 2001 +@@ -21,7 +21,7 @@ +

NAME

+ tclsh - Simple shell containing Tcl interpreter +

SYNOPSIS

+-tclsh ?fileName arg arg ...?
++tclsh8.3 ?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. +@@ -46,7 +46,7 @@ + case, 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.3
+ then 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 +@@ -60,7 +60,7 @@ + following three lines: +
#!/bin/sh
+ # the next line restarts using tclsh \
+-exec tclsh "$0" "$@"
++exec tclsh8.3 "$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 -- cgit v1.2.3