bash脚本运行异常-Bad for loop variable(ubuntu)

bash脚本运行错误-Bad for loop variable(ubuntu)一个从fedora7中拷贝过来的bash脚本,居然不能在ubuntu下

bash脚本运行错误-Bad for loop variable(ubuntu)

一个从fedora7中拷贝过来的bash脚本,居然不能在ubuntu下面执行,提示错误
Bad for loop variable

G了一把,在TW同胞那里找到了答案~原来是bash和dash的问题

解决方法:
使用
sudo dpkg-reconfigure dash
选择NO。。

世界又清静了~