English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-09-06 (09:28)
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

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