set: Illegal option - 问题描述 在linux执行sh文件时,报错set: line 3: illegal option - 解决方案 把文件内的\r去掉 sed -i 's/\r$//' filename