在ubuntu上简单写了个脚本,一运行就报 Syntax error: Bad fd number 后来在stackoverflow找到了方法 rm -rf /bin/sh ln -s /bin/bash /bin/sh 之后就可以正常运行sh文件了