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 52FEDBC6B for ; Fri, 22 Jun 2007 16:53:11 +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 l5MErA1U018130 for ; Fri, 22 Jun 2007 16:53:10 +0200 Received: from [172.25.131.129] [38.96.172.125] by janestcapital.com (SMTPD-9.10) id A2620218; Fri, 22 Jun 2007 10:53:22 -0400 Message-ID: <467BE251.2090404@janestcapital.com> Date: Fri, 22 Jun 2007 10:53:05 -0400 From: Andrew Warshaver User-Agent: Thunderbird 2.0.0.0 (X11/20070505) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: ocamlbuild single quotes causing trouble Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IMAIL-SPAM-VALFROM: (e26200ca00007ba9) X-IMAIL-SPAM-VALREVDNS: (e26200ca00007ba9) X-Miltered: at discorde with ID 467BE256.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; pcre:01 lib:01 -pp:01 camlp:01 lib:01 cmo:01 sexp:01 cmo:01 byte:01 usr:01 ocamlc:01 lib':01 -pp:01 sexp:01 cmo':01 Hi all, I was trying to compile a project using ocamlbuild with an external library located distantly, so I did the following (I am also doing preprocessing on the file): ocamlbuild -libs pcre -cflags -I,~/multi-oc/lib -pp "camlp4o ~/multi-oc\/lib/pa_type_conv.cmo ~/multi-oc/lib/pa_sexp_conv.cmo" live_query.byte Then ocamlbuild eventually runs the following command: /usr/local/home/godi310/godi/bin/ocamlc.opt -c -I '~/multi-oc/lib' -pp 'camlp4o ~/multi-oc/lib/pa_type_conv.cmo ~/multi-oc/lib/pa_sexp_conv.cmo' -o id.cmi id.mli and spits the error: File "id.mli", line 1, characters 0-9: Unbound module Jane Command exited with code 2. I noticed, however, if I remove the single quotes from the command -- like this -- /usr/local/home/godi310/godi/bin/ocamlc.opt -c -I ~/multi-oc/lib -pp 'camlp4o ~/multi-oc/lib/pa_type_conv.cmo ~/multi-oc/lib/pa_sexp_conv.cmo' -o id.cmi id.mli 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!). Is this a problem with ocamlbuild, or something deeper, or perhaps even expected behaviour? Andrew