From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id EB66DBB9C for ; Thu, 19 Jan 2006 20:52:10 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k0JJqA1Q007697 for ; Thu, 19 Jan 2006 20:52:10 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA13272 for ; Thu, 19 Jan 2006 20:52:10 +0100 (MET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0JJq8c3009658 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 19 Jan 2006 20:52:09 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1EzgF5-0007Sa-00 for ; Thu, 19 Jan 2006 20:18:47 +0000 Date: Thu, 19 Jan 2006 20:18:47 +0000 To: caml-list@inria.fr Subject: Re: [Caml-list] toplevel with pre-installed printers Message-ID: <20060119201847.GA28585@furbychan.cocan.org> References: <43CFBE3E.1090808@andrej.com> <43CFC776.3060801@andrej.com> <20060119174907.GA309@furbychan.cocan.org> <20060119191259.GB12416@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060119191259.GB12416@localhost> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at nez-perce with ID 43CFEDEA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 43CFEDE8.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 toplevel:01 getcwd:01 non-ocaml:01 toplevel:01 binary:01 usr:01 notepad:01 wrote:01 bin:01 sys:03 sys:03 executable:03 perhaps:03 dispatch:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Thu, Jan 19, 2006 at 02:12:59PM -0500, Eric Cooper wrote: > In a single "master" .ocamlinit, you could dispatch on > Sys.executable_name, and perhaps Sys.getcwd. Still a hack, but it > might avoid (non-OCaml) wrapper scripts. This is a clever idea. However one of the other problems is that people could run the toplevel from another directory. This is particularly important in the case where we install the toplevel as a binary in, say, /usr/bin. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com