Hello,
I've been looking into improve my development environment by using ns_eval to update all the TCL interps everytime I do changes on it. First off, it looks like I have to escape all the special TCL characters on ns_eval. Is this the intended behaviour because I've seen many examples of people using ns_eval to do something like this:
ns_eval {source /somewhere/out/there/file.tcl}
but this has never worked for me (source seems to get confused with the [ and the ].
I did a test and ran:
ns_eval {ns_log notice {test me}}
which produced errors where there were too many ns_log arguments. I was able to get it to work by doing this:
ns_eval {ns_log notice \{test me\}}
This leads me to believe that I have to escape every character that I use for ns_eval.
My second question is that some of my custom API calls don't seem to be recognized when running ns_eval. I don't really have much of an explanation for what this could be. If anyone has ideas and theories, I'm all ears.
Thanks!