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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id BE89FBC6B for ; Thu, 6 Sep 2007 11:28:27 +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 l869SR3R031858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 6 Sep 2007 11:28:27 +0200 Received: from hod-sarge-2005-10.lan.m-e-leypold.de (dslb-088-072-244-015.pools.arcor-ip.net [88.72.244.15]) (Authenticated sender: hod-sarge-2005-10@server2) by server2.thinkcrime.de (Postfix) with ESMTP id C4F9890025F for ; Thu, 6 Sep 2007 11:28:01 +0200 (CEST) Received: by hod-sarge-2005-10.lan.m-e-leypold.de (Postfix, from userid 1003) id AFA4E37963; Thu, 6 Sep 2007 11:32:44 +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> <1189024766.46df13fed404a@webmail.in-berlin.de> From: Markus E L Organization: N/A Date: Thu, 06 Sep 2007 11:32:44 +0200 In-Reply-To: <1189024766.46df13fed404a@webmail.in-berlin.de> (Oliver Bandel's message of "Wed, 5 Sep 2007 22:39:26 +0200") 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 46DFC83B.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 basename:01 markus:01 bandel:01 basename:01 usr:01 explicitely:01 ocaml:01 d'accord:01 markus:01 wrote:01 unix:01 oliver:01 caml-list:01 posix:01 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 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. Regards -- Markus