Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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-05 (13:02)
From: Markus E L <ls-ocaml-2006@m...>
Subject: Re: [Caml-list] Bug in Filename.basename?

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:
> 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