From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2C6CBBC6B for ; Thu, 6 Sep 2007 12:00:26 +0200 (CEST) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l86A0P4s008096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 6 Sep 2007 12:00:25 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from einhorn.in-berlin.de (localhost [127.0.0.1]) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id l86A0O8R022985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 6 Sep 2007 12:00:25 +0200 Received: (from www-data@localhost) by einhorn.in-berlin.de (8.13.6/8.13.6/Submit) id l86A0OI6022983 for caml-list@inria.fr; Thu, 6 Sep 2007 12:00:24 +0200 X-Authentication-Warning: einhorn.in-berlin.de: www-data set sender to oliver@first.in-berlin.de using -f Received: from dslb-088-073-111-054.pools.arcor-ip.net (dslb-088-073-111-054.pools.arcor-ip.net [88.73.111.54]) by webmail.in-berlin.de (IMP) with HTTP for ; Thu, 6 Sep 2007 12:00:24 +0200 Message-ID: <1189072824.46dfcfb8c3ad8@webmail.in-berlin.de> Date: Thu, 6 Sep 2007 12:00:24 +0200 From: Oliver Bandel To: caml-list@inria.fr Subject: Re: [Caml-list] Bug in Filename.basename? References: <20070905184538.88ada4e8.mle+ocaml@mega-nerd.com> <20070905104127.GB24323@furbychan.cocan.org> <20070905211013.b53cf46b.mle+ocaml@mega-nerd.com> <1188991526.46de922610e05@webmail.in-berlin.de> <20070905220031.5995251d.mle+ocaml@mega-nerd.com> <1189024766.46df13fed404a@webmail.in-berlin.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Miltered: at concorde with ID 46DFCFB9.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bandel:01 in-berlin:01 bug:01 basename:01 markus:01 bandel:01 basename:01 usr:01 explicitely:01 ocaml:01 d'accord:01 polymorphism:01 wrote:01 unix:01 oliver:01 Zitat von Markus E L : > > Oliver Bandel wrote: > > > It's more likely to assume that a shell (which shells did you use? > > different shells might also bring different results) > > Not quite: Basename is an external command . > > tmp/:$ which basename > /usr/bin/basename [...] Yes, that's correct. But you could implement your own basename in a shell. And in a typed shell you will have to. > > POSIX/Single Unix docuements it as having the same behaviour as the C > function (actually it doesn't say so explicitely but both are > described in different ways which boil down to the same behaviour). > > > is intended to offer the behaviour of the C-functions, > > than to assume that OCaml re-implements the shell-behaviour. > > But basically I'm d'accord regarding that Filename.basename is just a > different thing. [...] Otherwise, a planetary registering of function-/method-names Should be done... never name a method or function the same way, others does.. Then we would have a global/planetary society of function-name registering. Possibly we would name them like the regristration plate of cars. ;-) Each function name must be uniqe, Polymorphism forbidden. ;-) Ciao, Oliver