Browse thread
Bug in Filename.basename?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-09-05 (21:03) |
From: | Oliver Bandel <oliver@f...> |
Subject: | Re: [Caml-list] Bug in Filename.basename? |
Zitat von Oliver Bandel <oliver@first.in-berlin.de>: [...] > > ================================================ > # Filename.basename "/usr/lib";; > - : string = "lib" > # Filename.basename "/usr/";; > - : string = "." > # Filename.dirname "/usr/lib";; > - : string = "/usr" > # Filename.dirname "/usr/";; > - : string = "/usr" > # > ================================================ > > "/usr/" is a directory. So, Filename.dirname should give "usr". > [...] No, this is a typo: it should give "/usr", as it does. :) Ciao, Oliver