[wellylug] Newbie starting BWBasic - Linz
Andrew Stephen
andrew.stephen at gmail.com
Mon May 2 10:17:49 NZST 2005
On 5/2/05, Cliff Pratt <enkidu at cliffp.com> wrote:
> Reminds me. When I write a bash script, is it obligatory to
> include a hash-bang line?
You don't need the shebang (http://en.wikipedia.org/wiki/Shebang) if
the script is being called explicity. i.e.
$ sh ./myscript.sh
or
$ perl ./myprog.pl
however if you want to execute it like this:
$ ./myprog.py
then you'll need the shebang. It's the same for any interpreter, not
just shell (as you may have gathered).
--
Andrew Stephen
http://www.evil.geek.nz/
More information about the wellylug
mailing list