Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlbuild single quotes causing trouble
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] ocamlbuild single quotes causing trouble
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).

> 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