看下面程序:
[test @test test]# vi test14-for.sh
LIST="Tomy Jony Mary Geoge"
for i in $LIST
do
echo $i
done
执行结果:[test @test test]# sh test14-for.sh
Tomy
Jony
Mary
Geoge
其中for i in $LIST是不是将LIST中的内容赋给i呢
如果是那样的话执行结果应该是 Tomy Jony Mary Geoge,其中用了双引号那就是TomyJonyMaryGeoge
怎么是
Tomy
Jony
Mary
Geoge
难道是for的用法有 什么吗???
谁能告诉我为什么呢
谢谢啊