From: Florian Hars <florian@hars.de>
To: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
Cc: rbw3@cet.nau.edu, caml-list@inria.fr
Subject: Re: [Caml-list] command arguments sticking together
Date: Fri, 19 Apr 2002 14:21:51 +0200 [thread overview]
Message-ID: <20020419122151.GA31540@bik-gmbh.de> (raw)
In-Reply-To: <20020419182233V.garrigue@kurims.kyoto-u.ac.jp>
begin Jacques Garrigue quote:
> > #!/myscript option1 option2 ...
> >
> > The problem is that I am using the included Arg module to parse the arguments,
> > but when myscript is called it only sees one argument consisting of all the
> > arguments stuffed together... which the Arg routines don't care for much.
>
> Could you explain a bit more what is your problem?
His problem is that he is using Unix or a shell that behaves as
a Unix-shell:
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
any.
This is from the bash man page, but other shells should do the same thing,
and it is the normal behaviour for #!-scripts under Unix.
Yours, Florian.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-04-19 12:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-14 18:03 [Caml-list] Filename.quote - again Vitaly Lugovsky
2002-04-15 8:12 ` [Caml-list] " Xavier Leroy
2002-04-15 12:49 ` Vitaly Lugovsky
2002-04-15 13:26 ` Andrej Bauer
2002-04-15 13:47 ` Vitaly Lugovsky
[not found] ` <"from Andrej.Bauer"@andrej.com>
2002-04-19 5:58 ` [Caml-list] command arguments sticking together Brock
2002-04-19 9:08 ` Jérôme Marant
2002-04-19 10:01 ` [Caml-list] Prerelease - Announce ocaml-swig Benedikt Grundmann
2002-04-19 9:22 ` [Caml-list] command arguments sticking together Jacques Garrigue
2002-04-19 12:21 ` Florian Hars [this message]
2002-04-19 13:01 ` Christopher Quinn
2002-04-19 13:33 ` Christopher Quinn
[not found] ` <"from cq"@htec.demon.co.uk>
2002-04-19 19:39 ` Brock
2002-04-20 11:09 ` Alain Frisch
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=20020419122151.GA31540@bik-gmbh.de \
--to=florian@hars.de \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
--cc=rbw3@cet.nau.edu \
/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