I can not pass commands with arguments to the shell. To make a simple example:
tcl> set b "ls"
tcl> $b
will run ls
tcl> set b "ls -al"
tcl> $b
will complain about "ls" not being a kown command.
I know that you can easily execute shell commands with exec. But i do not want to execute a shell command sice i am using a program wich has it's own commands and a tcl-prompt.
Basically i want to set a variable to a special command for that program eg: set cmd "check_timing -verbose" and then be able to execute that in the shell.
tcl> set b "ls"
tcl> $b
will run ls
tcl> set b "ls -al"
tcl> $b
will complain about "ls" not being a kown command.
I know that you can easily execute shell commands with exec. But i do not want to execute a shell command sice i am using a program wich has it's own commands and a tcl-prompt.
Basically i want to set a variable to a special command for that program eg: set cmd "check_timing -verbose" and then be able to execute that in the shell.