I have a file..say filename.bin, which is an installer
Code:
$> file filename.bin
filename.bin: Bourne shell script text executable
However when I execute this binary:
Code:
$> ./filename.bin
-bash: ./filename.bin: /bin/sh^M: bad interpreter: No such file or directory
Now my question is can I safely try changing the first line of the binary which is #!/bin/sh ? Would it affect the way the binary is run ?
NOTE: /bin/sh exists and is a link to bash. Also when I open filename.bin using vim I do not see any special characters at the end of interpreter line. (I used :se list)
Thanks in advance.