becks
becks

Reputation: 2718

How to print all environment variables in TCL?

In TCL, how can I print all environment variables using a single line command?

Upvotes: 8

Views: 15222

Answers (1)

TrojanName
TrojanName

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

Related Questions