Linux bash:为什么两个脚本有不同的结果?[root@yumserver ~]# data="a,b,c";IFS=",";for i in $data;do echo $i;doneb[root@yumserver ~]# IFS+ data=a,b,c+ echo a b c+ echo a,b,c+ for i in '$data'a
+ for i in'$da
Script will terminate now." elif [ !Script will terminate now."exit 2fi# $ifs is a shell variable.# Set loop separator to end of line#use a temp. variable such that $ifs</e