为什么在大括号引号内,您必须转义所有大括号(不应计入嵌套),但在括号替换内,您不必转义所有括号(不应计入嵌套) )。
puts "}" ;# ok in top-level (1)
if {1} {puts "}"} ;# but not ok when inside a brace quote (2)
puts {]} ;# ok in top-level (3)
set output [puts {]}] ;# and still ok inside a bracket substitution (4)