Re: Calling one tcl script from another with parameters
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Calling one tcl script from another with parameters

From: Alan Anderson <aranders@insightbb.com>
Date: Tue Dec 20 2005 - 02:20:45 CET

"slebetman@yahoo.com" <slebetman@gmail.com> wrote:

> Actually, doing source will also work, just manually set argv and argc:
>
> global argc argv
> set argv "a b c"
> set argc [llength $argv]
> source xyz.tcl

If you're going to the trouble of treating argv explicitly as a list, a
slavish devotion to detail would require that you do it that way from
the beginning.

  set argv [list a b c]
Received on Fri Dec 23 19:02:18 2005