[wellylug] Newbie starting BWBasic - Linz
Simon Antliff
simon.antliff at gmail.com
Mon May 2 10:15:28 NZST 2005
> > Reminds me. When I write a bash script, is it obligatory to include a
> > hash-bang line?
>
> Tehcnically, not if you're running a bash shell, and the script is written
> in bash scripting language. It's a good idea to put it in however because
> if you are using a different shell and you omit the #! then it will almost
> certainly break. Besides, it's good practice, so I'd really say in my
> opinion it is mandatory for almost all cases. I can't think of a good
> reason to leave it out.
What happens if I try to run your script on my hypothetically
different machine in a different shell, where bash might be located in
/usr/thisisnothebinyourelookingfor/bash?
Would it depend on the smarts behind the shell I'm running as to
whether it processes it as bashscript or not?
Is there some standard naming service which can resolve program
locations? Do we need one?
I ask this, because some people say you should obfuscate your sbin and
bin locations for security reasons. Does this mean going through the
headaches of failed scripts unless you're careful?
More information about the wellylug
mailing list