[wellylug] Problem with attachment

Ewen McNeill wellylug at ewen.mcneill.gen.nz
Wed Mar 4 13:39:04 NZDT 2009


In message <1236118485.49adabd547359 at www.paradise.net.nz>, andrej at paradise.net.n
z writes:
>P.S.: I hope there's not really a space between the shebang and the /bin/bash
>in your actual script  ;)

It's not uncommon to do so, and it definitely works to have:

#! /path/to/interpreter

I actually type that format by reflex, having started writing scripts
in an environment where that was passed down as the proper syntax.
Interestingly some Googling suggests that there may never have been a unix
that literally matched "#! /" at the start (as a 32-bit word), making the
space compulsory, even though that was the received wisdom for a while.

http://en.wikipedia.org/wiki/Shebang_(Unix)#cite_note-3
http://www.in-ulm.de/~mascheck/various/shebang/#details

Ewen



More information about the wellylug mailing list