Reputation: 2718
In TCL, how can I print all environment variables using a single line command?
Upvotes: 8
Views: 15222
Reputation: 5365
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
Upvotes: 18