See exec(2):
          For a file beginning #!, the arguments passed to the program
          (/bin/rc in the example above) will be the name of the file
          being executed, any arguments on the #! line, the name of
          the file again, and finally the second and subsequent argu-
          ments given to the original exec call.  The result honors
          the two conventions of a program accepting as argument a
          file to be interpreted and argv[0] naming the file being
          executed.


Reply via email to