好的,伙计们,我遇到了 tcl 脚本的奇怪错误。这是工作代码:
foreach param $bucket {
if {[lindex $param 0] == "bucketState" &&\
([lindex $param 1] == "provisioned" ||\
[lindex $param 1] == "Active")} {
set activatedFlag "TRUE"
}
}
这不是:
foreach param $bucket {
if {[lindex $param 0] == "bucketState" &&\
([lindex $param 1] == "provisioned" ||\
[lindex $param 1] == "active")} {
set activatedFlag "TRUE"
}
}
唯一的区别在于“活跃”与“活跃”。o_o