Version française
Home     About     Download     Resources     Contact us    
Browse thread
Bug in Filename.basename?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus E L <ls-ocaml-2006@m...>
Subject: Re: [Caml-list] Bug in Filename.basename?

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