From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA14389; Fri, 19 Apr 2002 11:09:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA14122 for ; Fri, 19 Apr 2002 11:09:07 +0200 (MET DST) Received: from gwsmtp.thomson-csf.com (gwsmtp.thomson-csf.com [195.101.39.226]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3J996L04447 for ; Fri, 19 Apr 2002 11:09:06 +0200 (MET DST) Received: from thomplex.thomson-csf.com (200.3.2.2) by gwsmtp.thomson-csf.com (NPlex 5.1.053) id 3CBA667C000961AE for caml-list@inria.fr; Fri, 19 Apr 2002 11:11:36 +0200 Received: from thomplex.thomson-csf.com (200.3.2.2) by thomplex.thomson-csf.com (NPlex 5.1.036) id 3CBE8E7300026037 for caml-list@inria.fr; Fri, 19 Apr 2002 11:11:50 +0200 Received: from bgxplex3.bgx.airsys.thomson-csf.com (1.38.9.153) by bgxplex.bgx.airsys.thomson-csf.com (NPlex 5.1.053) id 3CAC2CE10002A4A7 for caml-list@inria.fr; Fri, 19 Apr 2002 11:08:25 +0200 Received: from bgxplex3.bgx.airsys.thomson-csf.com (1.38.9.153) by bgxplex3.bgx.airsys.thomson-csf.com (NPlex 5.1.053) id 3CAAD5C60001DE67 for caml-list@inria.fr; Fri, 19 Apr 2002 11:19:38 +0200 Received: from 187.150.3.12 by bgxplex3.bgx.airsys.thomson-csf.com (InterScan E-Mail VirusWall NT); Fri, 19 Apr 2002 11:19:38 +0200 Received: from af_mara by lully.bgx.airsys.thomson-csf.com with local (Exim 3.22 #1 (Red Hat Linux)) id 16yUNS-000587-00 for ; Fri, 19 Apr 2002 11:08:22 +0200 Date: Fri, 19 Apr 2002 11:08:22 +0200 From: =?iso-8859-1?Q?J=E9r=F4me_Marant?= To: caml-list@inria.fr Subject: Re: [Caml-list] command arguments sticking together Message-ID: <20020419110822.A19570@fr.thalesgroup.com> Mail-Followup-To: caml-list@inria.fr References: <"from Andrej.Bauer"@andrej.com> <20020419055857.E12446@deathonastick.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020419055857.E12446@deathonastick.org>; from rbw3@cet.nau.edu on Fri, Apr 19, 2002 at 05:58:57AM +0000 Content-Transfer-Encoding: Quoted-Printable Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Apr 19, 2002 at 05:58:57AM +0000, Brock wrote: >=20 > I am attempting to write an ocaml program which acts as a script when a= data > file for it starts with >=20 > #!/myscript option1 option2 ... >=20 > The problem is that I am using the included Arg module to parse the arg= uments, > 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 muc= h. >=20 > So does anyone have any ideas to work around this? Is the Sys.argv array not enough for you? --=20 J=E9r=F4me Marant ------------------- 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