在ubuntu 之下,shell命令的for({i=0;i<10;i++})之类的命令不能运行,是因为ubuntu 用的是dash,不是bash 解决方法: sudo dpkg-reconfigure dash 选择 否