[LBo] Running shell script

Chris F.A. Johnson cfajohnson at teksavvy.com
Sat Jan 6 01:37:22 CET 2007


On Fri, 5 Jan 2007, Jisao wrote:

> Chris F.A. Johnson wrote:
>>
>>      The shebang will not make any difference.
>
> So, the shebang is mostly something like a comment to the users to visually 
> see that the file is a script?
>
> I am confused about its use.  I thought it accomplished some purpose...

    The shebang does have its uses, but enabling the shell to find the
    script is not one of them.

    Its purpose is to tell the OS (or the shell) which intepreter to
    use to interpret the script.

-- 
    Chris F.A. Johnson                      <http://cfaj.freeshell.org>
    ===================================================================
    Author:
    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


More information about the QnA mailing list