Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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:  -->  ''
and if there's a single quote inside the argument, the following is
        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 Archives:
Bug reports: FAQ:
Beginner's list: