From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id D216CBC6C for ; Fri, 22 Jun 2007 19:46:09 +0200 (CEST) Received: from smtp.janestcapital.com (www.janestcapital.com [66.155.124.107]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5MHk7LN021130 for ; Fri, 22 Jun 2007 19:46:08 +0200 Received: from [172.25.131.129] [38.96.172.125] by janestcapital.com (SMTPD-9.10) id AAEA02AC; Fri, 22 Jun 2007 13:46:18 -0400 Message-ID: <467C0ADA.7060008@janestcapital.com> Date: Fri, 22 Jun 2007 13:46:02 -0400 From: Andrew Warshaver User-Agent: Thunderbird 2.0.0.0 (X11/20070505) MIME-Version: 1.0 To: Alain Frisch Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocamlbuild single quotes causing trouble References: <467BE251.2090404@janestcapital.com> <467C0275.2050106@frisch.fr> In-Reply-To: <467C0275.2050106@frisch.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IMAIL-SPAM-VALFROM: (0aea0180000081c4) X-IMAIL-SPAM-VALREVDNS: (0aea0180000081c4) X-Miltered: at discorde with ID 467C0ADF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; frisch:01 abbrev:01 lib:01 ocamlc:01 wrote:01 wrote:01 behaviour:01 caml-list:01 natively:01 alain:01 alain:01 argument:02 shell:04 shell:04 perhaps:04 Alain Frisch wrote: > Andrew Warshaver wrote: >> it works just fine. I also discovered that if I don't use the ~ abbrev. >> then everything is happy (although this took me a long time to >> discover!). > > The shell is responsible to expand ~ before calling the program. If you > quote it, it won't be expanded; this is normal. When you put ~ on > ocamlbuild's command line, as in "-I,~/multi-oc/lib" it is not expanded > either (~ is interpreted only at the beginning of a word on the command > line). > Thanks for the explanation. But is there any reason that ocamlbuild has to add the single quotes when transferring the argument to ocamlc? And, if it didn't, would it then work appropriately? >> Is this a problem with ocamlbuild, or something deeper, or >> perhaps even expected behaviour? > > Maybe ocamlbuild should support natively options like "-I xxx" (without > quotes), so that xxx will be processed by the shell. > > -- Alain