From: Vitaly Lugovsky <vsl@ontil.ihep.su>
To: Xavier Leroy <xavier.leroy@inria.fr>
Cc: <caml-list@inria.fr>
Subject: [Caml-list] Re: Filename.quote - again
Date: Mon, 15 Apr 2002 16:49:13 +0400 (MSD) [thread overview]
Message-ID: <Pine.LNX.4.33.0204151646010.23429-100000@ontil.ihep.su> (raw)
In-Reply-To: <20020415101256.A9201@pauillac.inria.fr>
On Mon, 15 Apr 2002, Xavier Leroy wrote:
> > 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 can't understand, what is it for?!? We don't have file names with
spaces...
> 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.
Sure, it works too fine...
> > 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?
(from camltk418)
$ocamlc -custom -linkall -o ocamltktop -I ../support \
-ccopt -L../support -cclib -lcamltk -ccopt "" \
-cclib "-ltk8.3 -ltcl8.3 -ldl " -ccopt " -L/usr/X11R6/lib" \
-cclib " -lSM -lICE -lX11 -lm" \
toplevellib.cma camltk.cma topmain.cmo
i586-alt-linux-gcc: -lSM -lICE -lX11 -lm: No such file or directory
i586-alt-linux-gcc: -lSM -lICE -lX11 -lm: No such file or directory
Error while building custom runtime system
With '-verbose' option I got something like
gcc ... ' -L/usr/X11R6/lib ' ' -lSM -lICE -lX11 -lm' ...
^^^^^^^^^^^^^^^^^^^^^^^^
gcc treats this as a file name, not as an options, thanx
to the single quotes.
-------------------
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
next prev parent reply other threads:[~2002-04-15 12:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-14 18:03 [Caml-list] " Vitaly Lugovsky
2002-04-15 8:12 ` [Caml-list] " Xavier Leroy
2002-04-15 12:49 ` Vitaly Lugovsky [this message]
2002-04-15 13:26 ` Andrej Bauer
2002-04-15 13:47 ` Vitaly Lugovsky
[not found] ` <"from Andrej.Bauer"@andrej.com>
2002-04-19 5:58 ` [Caml-list] command arguments sticking together Brock
2002-04-19 9:08 ` Jérôme Marant
2002-04-19 10:01 ` [Caml-list] Prerelease - Announce ocaml-swig Benedikt Grundmann
2002-04-19 9:22 ` [Caml-list] command arguments sticking together Jacques Garrigue
2002-04-19 12:21 ` Florian Hars
2002-04-19 13:01 ` Christopher Quinn
2002-04-19 13:33 ` Christopher Quinn
[not found] ` <"from cq"@htec.demon.co.uk>
2002-04-19 19:39 ` Brock
2002-04-20 11:09 ` Alain Frisch
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=Pine.LNX.4.33.0204151646010.23429-100000@ontil.ihep.su \
--to=vsl@ontil.ihep.su \
--cc=caml-list@inria.fr \
--cc=xavier.leroy@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