source .tcl script on tclsh startup, and remain in interactive mode

Darren Weber dweber at macports.org
Mon May 18 16:40:07 PDT 2009


On Mon, May 18, 2009 at 4:30 PM, Darren Weber <dweber at macports.org> wrote:

>
> Let the file ~/bin/macports.tcl contain the following:
>
> source /Library/Tcl/macports1.0/macports_fastload.tcl
> package require Pextlib
>
> Then, how do you startup tclsh8.4 with a command line option to source this
> file and remain in an interactive mode?  The man page and a google search
> are not providing a clear answer to this simple problem.  I'm not a tcl
> expert, but I would have thought there is a tclsh command line option to
> source a .tcl script (and then remain interactive).
>
> Thanks in advance,
> Darren
>
>

Interesting note on autoloading:
http://www.ccp4.ac.uk/peter/programming/tcl_autoloading.html

Section 13.7 of Tcl and Tk Toolkit by Ousterhout is interesting also.
http://www.amazon.com/Tcl-Toolkit-Addison-Wesley-Professional-Computing/dp/020163337X
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090518/5746c2cf/attachment.html>


More information about the macports-dev mailing list