Expect 中设置变量跟 Bash 稍有不同Bash12name=wxnacyecho $name # wxnacyExpect12set name wxnacyputs $name # wxnacy边境变量也是如此Bash1echo $HOME # /Users/wxnacyExpect1puts $env(HOME) # /Users/wxnacy