On Tuesday 16 October 2001 11:05, Marc SCHAEFER wrote:
> On Tue, 16 Oct 2001, Jiang Wei wrote:
> > Il y a pas d'espace entre #!/bin/tcsh
>
> Les syst�mes UNIX utilisent #! comme indicateur, et ensuite lancent
> l'interpr�teur qui suit. Les espaces sont normalement ignor�s.

Et pour ceux que ces deux caract�res intriguent, voici un extrait du manuel 
d'exec(2).

      ...
      For a script file, the initial line of a script file must begin with
      #! as the first two bytes, followed by zero or more spaces, followed
      by interpreter or interpreter argument, as in:

           #! interpreter [argument]

      One or more spaces or tabs must separate interpreter and argument.
      The first line should end with either a newline or a null character.

      When the script file is executed, the system executes the specified
      interpreter as an executable object file.  Even in the case of
      execlp() or execvp(), no path searching is done of the interpreter
      name.
      ...

Daniel
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question. Ouais, pour se d�sabonner aussi.

Répondre à