[Starkit] Re: tclkit8.5a2 doesn't work on plain .tcl files

Jean-Claude Wippler jcw at equi4.com
Tue Jan 4 16:03:09 CET 2005


Reinhard Max wrote:

> I just tried to use the tclkit binaries for i386 and x86_64 from your
> site to run plain Tcl scripts and ran into some strange problems:
>
> $ cat hello.tcl
> puts "hello world"
> $ tclsh hello.tcl
> hello world
> $ ./tclkit8.4.9 hello.tcl
> hello world
> $ ./tclkit8.4.9 ./hello.tcl
> hello world
> $ ./tclkit8.5a2 hello.tcl
> application-specific initialization failed: couldn't read file
> "lib/tcl8.5/init.tcl": no such file or directory
> hello world
> $ ./tclkit8.5a2 ./hello.tcl
> $
>
> So, while the script works fine with a plain tclsh and tclkit8.4.9, it
> fails in different ways when run under 8.5a2 depending on the script
> argument being given with absolute or relative path.
>
> Do you have an idea what could be going on here?
>
> BTW, David Zolli wasn't able to repro this behaviour with his
> self-built tclkit8.5a2.

Thx for diagnosing this further.  Philip Quaife also emailed me about 
this, so I'm posting it to the starkit mailing list as warning and 
reminder to look into it in the coming days.

Tclkit 8.4x has one patch to it to deal with first-arg-as-file, see:
	http://www.equi4.com/pub/tk/tars/all.diffs
Hmmm, maybe I forgot to apply it to 8.5, or if there is a change 
there...

-jcw



More information about the Starkit mailing list