Hm... mabye it will be easier to understand if put it like this:
> set cmd {ls -al}
then I want to execute that command, but not using exec (since that doesnt work for my specific commands).
What's annoying is that ls -al works really fine if i type it in myself at the prompt. But i dosen't...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.