bre...@google.com wrote:
> On Friday, September 12, 2014 at 6:41:12 AM UTC-7, Ralf Fassel wrote:
> > In a test script I'm using tclhttpd to simulate anm http server.
> > When I switch to tcl 8.6, the server startup fails because it tries to
> > execute "file isdirectory ... " in a safe interp:
> >
> > Error in configuration file "/software/tclhttpd/current/bin/tclhttpd.rc"
> > :Error: not allowed to invoke subcommand isdirectory of file
> > while executing
> > "config::init $Config(config) Config"
> > (file "/software/tclhttpd/current/bin/httpd.tcl" line 159)
> > invoked from within
> > "source /software/tclhttpd/current/bin/httpd.tcl"
> > (file "/tmp/15322/htdocs/httpd.tcl" line 7)
> >
> > Using a tcl 8.5 tclsh this works, but some of the 'file' subcommands
> > have been declared 'unsafe' in 8.6, so this no longer works.
> >
> > Has anybody used/modified tclhttpd with 8.6? Alternatives?
> Sob. So the TclHttpd 3.5.1 I created in 2004 finally stopped working with the latest
> version of Tcl, and it took me two years to notice. Insert "shame cube" meme.
> My work-around is going to be to install the latest Tcl 8.5 and automatically
> edit the bin/httpd.tcl script to use tclsh8.5 instead of tclsh.
> It would be super great if someone created a tarball dist that I could just
> download, unpack, and execute. I know that is so 20'th century.