Well. The question is about TCL and not about perl. More than that, it is about interaction of TCL with shell :) Anyway. I don't believe you need such a "dot-command" for executing TCL. It is always executed in the context of the current shell. Just make sure you export the desired variables, or add them to the command line. For example

bash$ MY_ENVIRONMENT_1=some_val MY_ENVIRONMENT_2=other_val ./my_tcl_sc +ript

The "dot-command" for shell is needed, because otherwise new shell interpreter is started. The #!/bin/sh on the first line of the script requests this. In TCL scripts (as well as perl scripts) the first line requests some different executable, not the new shell (normally) so, no new shell is started.


In reply to Re: Equivalent Dot Command in TCL by andal
in thread Equivalent Dot Command in TCL by rehmanz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.