From 39cc9d8a23ee168b1a7330b4ff649d58e28e2a26 Mon Sep 17 00:00:00 2001
From: "jan.nijtmans" <nijtmans@users.sourceforge.net>
Date: Tue, 29 Nov 2011 20:09:09 +0000
Subject: Use the same shebang comment everywhere

---
 ChangeLog                | 6 ++++++
 doc/tclsh.1              | 2 +-
 tools/str2c              | 2 +-
 tools/tcltk-man2html.tcl | 2 +-
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f7ba85f..b59f373 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-29  Jan Nijtmans  <nijtmans@users.sf.net>
+
+	* doc/tclsh.1:  Use the same shebang comment everywhere.
+	* tools/str2c
+	* tools/tcltk-man2html.tcl
+
 2011-11-22  Jan Nijtmans  <nijtmans@users.sf.net>
 
 	* generic/tclCmdAH.c:   [Bug 2935503] Windows: file mtime
diff --git a/doc/tclsh.1 b/doc/tclsh.1
index 76323f1..53782a6 100644
--- a/doc/tclsh.1
+++ b/doc/tclsh.1
@@ -68,7 +68,7 @@ following three lines:
 .CS
 \fB#!/bin/sh
 # the next line restarts using tclsh \e
-exec tclsh "$0" "$@"\fR
+exec tclsh "$0" ${1+"$@"}\fR
 .CE
 This approach has three advantages over the approach in the previous
 paragraph.  First, the location of the \fBtclsh\fR binary doesn't have
diff --git a/tools/str2c b/tools/str2c
index c761f91..971e552 100644
--- a/tools/str2c
+++ b/tools/str2c
@@ -5,7 +5,7 @@
 # 1997/10 -- dl
 #
 # restart with tclsh \
-exec tclsh8.0 "$0" "$@"
+exec tclsh "$0" ${1+"$@"}
 
 # Max string length
 # (some C compiler have a 2048 chars limits (so 2047 real chars with
diff --git a/tools/tcltk-man2html.tcl b/tools/tcltk-man2html.tcl
index ae9d68f..c96362f 100755
--- a/tools/tcltk-man2html.tcl
+++ b/tools/tcltk-man2html.tcl
@@ -1,6 +1,6 @@
 #!/bin/sh
 # The next line is executed by /bin/sh, but not tcl \
-exec tclsh8.4 "$0" ${1+"$@"}
+exec tclsh "$0" ${1+"$@"}
 
 package require Tcl 8.4
 
-- 
cgit v0.12