Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Filename.quote - again
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: [Caml-list] Re: Filename.quote - again
> I can't understand the meaning of the following code:

Filename.quote puts its argument between single quotes:
        foo.ml  -->  'foo.ml'
and if there's a single quote inside the argument, the following is
generated:
        foo'bar --> 'foo'\''bar'
i.e. the ' causes the current quote to be closed, an unquoted \' to be
generated, and a new quote to be opened.  This seems to work fine with
any Unix shell.

>  It makes gcc crazy when you passing linking
> options with spaces inside (try to compile
> camltk418 for example).

Can you provide a more specific bug report?  What is passed to gcc
that gcc doesn't like?

- Xavier Leroy

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners