From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA15191; Mon, 15 Apr 2002 14:45:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA15875 for ; Mon, 15 Apr 2002 14:45:05 +0200 (MET DST) Received: from mg.ihep.su (mg.ihep.su [194.190.161.38]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g3FCj3v19324; Mon, 15 Apr 2002 14:45:03 +0200 (MET DST) Received: by mg.ihep.su (Postfix, from userid 65436) id CB341B5B04; Mon, 15 Apr 2002 16:44:57 +0400 (MSD) Received: from ontil.ihep.su (ontil.ihep.su [194.190.161.63]) by mg.ihep.su (Postfix) with ESMTP id 40871B5B02; Mon, 15 Apr 2002 16:44:54 +0400 (MSD) Received: from localhost (vsl@localhost) by ontil.ihep.su (8.11.6/8.11.6) with ESMTP id g3FCnDK24820; Mon, 15 Apr 2002 16:49:23 +0400 Date: Mon, 15 Apr 2002 16:49:13 +0400 (MSD) From: Vitaly Lugovsky To: Xavier Leroy Cc: Subject: [Caml-list] Re: Filename.quote - again In-Reply-To: <20020415101256.A9201@pauillac.inria.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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