日期:2014-05-16 浏览次数:20757 次
Syntax error: "("
/bin/sh^M: bad interpreter: No such file or directory
root@xushaolong-virtual-machine:/mnt/hgfs/ubuntu# ./a
bash: ./a: /bin/sh^M: bad interpreter: No such file or directory
root@xushaolong-virtual-machine:/mnt/hgfs/ubuntu# dos2unix a
dos2unix: converting file a to Unix format ...
root@xushaolong-virtual-machine:/mnt/hgfs/ubuntu# ./a
./a: 2: ./a: Syntax error: "(" unexpected
root@xushaolong-virtual-machine:/mnt/hgfs/ubuntu#
#!/bin/sh
function test()
{
echo 1
}