Browse thread
ocamlbuild single quotes causing trouble
-
Andrew Warshaver
-
Alain Frisch
- Andrew Warshaver
-
Alain Frisch
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Andrew Warshaver <awarshaver@j...> |
| Subject: | Re: [Caml-list] ocamlbuild single quotes causing trouble |
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