I'm having difficulties trying to use environment variables in TCL.
So I have a shell script which exports a bunch of environment variables so that my TCL scripts can use them later on.
set_vars.sh has the following code in it:
export TEST_ENV_VAR=Test
and the following works:
% puts $env(TEST_ENV_VAR)
Test
BUT once I place the environment variable in a operator or in quotes, nothing is returned.
% puts "$env(TEST_ENV_VAR) is in TEST_ENV_VAR"
is in TEST_ENV_VAR
Anyone know what the issue could be? Any help would be greatly appreciated.
Thanks for your time.