How to print all environment variables in TCL?
environment-variables, tcl
Solution
There is an array called env that stores all the environment variables. So you can simply do this:
puts [array get env]
or simply
parray env
Problem
In TCL, how can I print all environment variables using a single line command?