$ head -1 edit_abi.pl | od -c 0000000 357 273 277 # ! / u s r / b i n / p e 0000020 r l \n
However, there are those odd (for me) numbers, 357 273 277 before the shebang text. What could that be? I think that this could be what is giving me the problem.
I am using the TextWrangler editor for writing the scripts, which is the light version of BBEdit.
UPDATE!
I solved the problem. Given the "odd numbers" that appeared at the beginning of the file when I run it through od, I searched what they meant and I learnt that \357\273\277 is the Byte Order Mark (BOM) for UTF-8, the encoding I was using. The text editor was just adding that invisible sequence automatically. So, I changed the encoding to UTF-8 whitout BOM (available in this text editor) and now the scripts run as expected.
I hope this can help other people. And thank you very much for your help, it was really very useful (I didn't know od, nor what hexadecimal dumper meant). Roger
In reply to Re: running scripts in Mac OS 10.4
by rogerd
in thread running scripts in Mac OS 10.4
by rogerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |