【发布时间】:2014-02-19 10:22:06
【问题描述】:
threads=`ls t[0-9][0-9]`
for thread in "${threads[@]}"
do
echo $thread
done
预期结果:
t01
t02
t10
实际结果:
threads[@]: bad array subscript
【问题讨论】:
-
另外,您可能想要真正提出问题,而不是仅仅提交代码......