[svlug] Setting a files properties

Karsten M. Self kmself at ix.netcom.com
Thu Jan 10 01:12:01 PST 2002

on Mon, Jan 07, 2002 at 09:27:02PM -0800, hvrietsc at yahoo.com (hvrietsc at yahoo.com) wrote:
> assuming you mean a shell script then:
> first line of the script should be:
> #/bin/sh
> (yes a # comment in front!)

Actually, it must be "#!".

From man (1) bash:

    If  the program is a file beginning with #!, the remainder
    of the first line specifies an interpreter  for  the  pro-
    gram.   The  shell  executes  the specified interpreter on
    operating systems that do not handle this executable  for-
    mat  themselves.  The arguments to the interpreter consist
    of a single optional argument  following  the  interpreter
    name  on  the  first  line of the program, followed by the
    name of the program, followed by the command arguments, if


Karsten M. Self <kmself at ix.netcom.com>        http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?              Home of the brave
  http://gestalt-system.sourceforge.net/                    Land of the free
We freed Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire                      http://kmself.home.netcom.com/resume.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.svlug.org/archives/svlug/attachments/20020110/aad79cf8/attachment.bin

More information about the svlug mailing list