From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 040A4BBC4 for ; Fri, 20 Jan 2006 20:29:37 +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 k0KJTas2030198 for ; Fri, 20 Jan 2006 20:29:36 +0100 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 UAA01241 for ; Fri, 20 Jan 2006 20:29:35 +0100 (MET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k0KJTXVt030190 for ; Fri, 20 Jan 2006 20:29:35 +0100 Received: from rosella (ppp21-250.lns2.syd7.internode.on.net [59.167.21.250]) by smtp1.adl2.internode.on.net (8.13.5/8.13.5) with ESMTP id k0KJTKIZ060695; Sat, 21 Jan 2006 05:59:21 +1030 (CST) (envelope-from skaller@users.sourceforge.net) Subject: Re: [Caml-list] toplevel with pre-installed printers From: skaller To: David Brown Cc: caml-list@inria.fr, Richard Jones In-Reply-To: <20060120164914.GA15521@old.davidb.org> References: <43CFBE3E.1090808@andrej.com> <43CFC776.3060801@andrej.com> <20060119174907.GA309@furbychan.cocan.org> <20060119191259.GB12416@localhost> <20060119201847.GA28585@furbychan.cocan.org> <1137723843.8822.139.camel@rosella> <20060120164914.GA15521@old.davidb.org> Content-Type: text/plain Date: Sat, 21 Jan 2006 06:29:19 +1100 Message-Id: <1137785359.15137.12.camel@rosella> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 43D13A20.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43D13A1D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 toplevel:01 argv:01 argv:01 unix:01 wrote:01 wrote:01 sourceforge:01 simpler:01 flx:01 hmm:02 executable:03 fri:05 fri:05 echo:05 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 Fri, 2006-01-20 at 08:49 -0800, David Brown wrote: > On Fri, Jan 20, 2006 at 01:24:03PM +1100, skaller wrote: > > > You simply look at argv[0] which on some Unix systems > > is the full path name of the invoked executable. > > Actually, argv[0] is almost never a full path. You're right. Hmm .. but your example is complicated, here's a simpler version: skaller@rosella:/work/felix/flx$ echo $0 bash .. clearly not the full path. -- John Skaller Felix, successor to C++: http://felix.sf.net