无法使用具有多字值的数组

时间:2011-10-28 23:19:23

标签: arrays bash

1 个答案:

答案 0 :(得分:8)

你需要引用:

for i in "${all[@]}"; do
    echo "$i"
done