9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] #! scripts
Date: Thu,  9 Apr 2009 19:40:57 +0100	[thread overview]
Message-ID: <6af7d252267a104b4669cb592cf72bf2@hamnavoe.com> (raw)
In-Reply-To: <fe2e928b500f34dc0165f1e241440487@proxima.alt.za>

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	other threads:[~2009-04-09 18:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 18:28 lucio
2009-04-09 18:40 ` Richard Miller [this message]
2009-04-09 18:56   ` lucio
  -- strict thread matches above, loose matches on Subject: below --
2005-02-09 13:33 [9fans] scripts Steve Simon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6af7d252267a104b4669cb592cf72bf2@hamnavoe.com \
    --to=9fans@hamnavoe.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).