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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id BDDB2BC6B for ; Wed, 5 Sep 2007 14:00:35 +0200 (CEST) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l85C0XLV021024 for ; Wed, 5 Sep 2007 14:00:34 +0200 Received: (qmail 20066 invoked from network); 5 Sep 2007 12:00:48 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 5 Sep 2007 12:00:48 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id BA89E2FB82 for ; Wed, 5 Sep 2007 22:00:31 +1000 (EST) Date: Wed, 5 Sep 2007 22:00:31 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] Bug in Filename.basename? Message-Id: <20070905220031.5995251d.mle+ocaml@mega-nerd.com> In-Reply-To: <1188991526.46de922610e05@webmail.in-berlin.de> 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> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 46DE9A61.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 bug:01 basename:01 bandel:01 bug:01 ocaml:01 basename:01 opengroup:01 onlinepubs:01 usr:01 lib:01 lib:01 usr:01 vacuum:98 suck:98 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" Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Who would have believed that reading and writing would pay off?" -- Homer Simpson