caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andrew Warshaver <awarshaver@janestcapital.com>
To: Alain Frisch <alain@frisch.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlbuild single quotes causing trouble
Date: Fri, 22 Jun 2007 13:46:02 -0400	[thread overview]
Message-ID: <467C0ADA.7060008@janestcapital.com> (raw)
In-Reply-To: <467C0275.2050106@frisch.fr>


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


  reply	other threads:[~2007-06-22 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22 14:53 Andrew Warshaver
2007-06-22 17:10 ` [Caml-list] " Alain Frisch
2007-06-22 17:46   ` Andrew Warshaver [this message]
2007-06-22 20:38     ` Philippe Wang

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=467C0ADA.7060008@janestcapital.com \
    --to=awarshaver@janestcapital.com \
    --cc=alain@frisch.fr \
    --cc=caml-list@yquem.inria.fr \
    /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).