1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TCL command line

Discussion in 'Support' started by fpefpe, Apr 25, 2011.

  1. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    263
    Likes Received:
    1
    Hello --

    I am not sure if I missed something in the doc, but I been testing the embedded / loaded tcl support

    if have a file foo.tcl

    and if I type foo at the tcc command line, tcc run foo.tcl

    now I am trying to past arguments to foo.tcl so I typed

    foo this is a test

    I expected the standard tcl vars to be set, ie

    argc -> count of items in the argv list
    argv -> all the arguments specified on the command line

    When I when to reference these (global) variables then came back as undefined --

    Did I miss something ?

    Thanks for the help
     

Share This Page