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=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 750E4BC6B for ; Wed, 5 Sep 2007 15:02:36 +0200 (CEST) Received: from server2.thinkcrime.de (server2.thinkcrime.de [213.133.110.149]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l85D2ZEY011608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 5 Sep 2007 15:02:36 +0200 Received: from hod-sarge-2005-10.lan.m-e-leypold.de (dslb-088-074-042-110.pools.arcor-ip.net [88.74.42.110]) (Authenticated sender: hod-sarge-2005-10@server2) by server2.thinkcrime.de (Postfix) with ESMTP id 04D9390025F for ; Wed, 5 Sep 2007 15:02:12 +0200 (CEST) Received: by hod-sarge-2005-10.lan.m-e-leypold.de (Postfix, from userid 1003) id 3F24637963; Wed, 5 Sep 2007 15:06:53 +0200 (CEST) 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> From: Markus E L Organization: N/A Date: Wed, 05 Sep 2007 15:06:52 +0200 In-Reply-To: <20070905220031.5995251d.mle+ocaml@mega-nerd.com> (Erik de Castro Lopo's message of "Wed, 5 Sep 2007 22:00:31 +1000") Message-ID: User-Agent: Some cool user agent (SCUG) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at discorde with ID 46DEA8EB.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 basename:01 markus:01 bandel:01 bug:01 ocaml:01 basename:01 opengroup:01 onlinepubs:01 usr:01 lib:01 lib:01 usr:01 markus:01 vacuum:98 Erik de Castro Lopo wrote: > Oliver Bandel wrote: > >> But possibly it's not different to other basename-implementations. > > Which is exactly what I said later in my email. > >> Looking at that documentation, I can't see no bug in the implementation. > > Your documentation documents the Ocaml function. > >> When you want to know how your car's GPS-navigation system works, >> do you look in the documentation of your video-camera or vacuum-cleaner? > > We are not talking about GPS systems or video cameras or vacuum cleaners, > but if you want we can continue; I would be complaining if I was sold > a video camera that didn't record video but did suck a lot of air. > > The function is called basename just like the IEEE Std 1003.1 standard > function specified by The Open Group: > > http://www.opengroup.org/onlinepubs/000095399/functions/basename.html > > In the examples section of that document they give these examples: > > Input String Output String > "/usr/lib" "lib" > "/usr/" "usr" Yeah, but that function does the wrong thing[tm]. Sorry. Regards -- Markus