Gustaf Neumann
Wed, 09 Apr 2008 09:36:12 -0700
Cite from http://wiki.tcl.tk/812: There seems to be a growing consensus that the best way to make a Tcl script executable as if it were a Bash or Sh script is to put the following on the very top line of your Tcl (or Tk) script: #!/usr/bin/env tclsh well, the hack with the Tcl comment with the continuation line works as well, but i am not sure that i would call it the way it "should be done". -gustaf neumann John Buckman schrieb:
This looks to be the way it should be done (from tests/new/all.tcl) $ more tests/new/all.tcl #!/bin/sh # the next line restarts using tclsh \ exec tclsh "$0" "$@" -- AOLserver - http://www.aolserver.com/To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
-- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.