Jeff Hobbs
Wed, 09 Apr 2008 09:29:57 -0700
John Buckman wrote:
John Buckman schrieb:the utils/*.tcl files in CVS all need: #!/usr/local/bin/tclshprepended at the top. Currently, they don't have this, and thus are run as shell scripts.hmm, shouldn't this be a "/usr/bin/env tclsh" instead?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" "$@"
Whether these scripts needed modification or not, I just want to note that the 'exec tclsh' is the old-school way that existed to get around some buggy shells in systems that we all hope are dead and buried. The /usr/bin/env tclsh is the preferred way to specify the #! line now.
Jeff -- 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.