in reply to running scripts in Mac OS 10.4
$ 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: running scripts in Mac OS 10.4
by kyle (Abbot) on Jun 25, 2008 at 20:40 UTC | |
by rogerd (Sexton) on Jun 25, 2008 at 21:04 UTC | |
by graff (Chancellor) on Jun 26, 2008 at 03:39 UTC | |
by DrHyde (Prior) on Jun 26, 2008 at 09:57 UTC | |
by jethro (Monsignor) on Jun 26, 2008 at 12:16 UTC |