Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 TCL 中,如何使用单行命令打印所有环境变量?
有一个名为 env 的数组存储所有环境变量。所以你可以简单地这样做:
puts [array get env]
或者干脆
parray env