Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent documentation: Filename #2964

Closed
vicuna opened this issue Jul 17, 2004 · 1 comment
Closed

Inconsistent documentation: Filename #2964

vicuna opened this issue Jul 17, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 17, 2004

Original bug ID: 2964
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hi,

I was reading

http://caml.inria.fr/ocaml/htmlman/libref/Filename.html

and basename claims:

Split a file name into directory name / base file name. concat (dirname
name) (basename name) returns a file name which is equivalent to name.

Sys.executable_name;;

  • : string = "/usr/bin/ocaml"

let n = Sys.executable_name in (Filename.dirname n)^(Filename.basename

n);;

  • : string = "/usr/binocaml"

Plus, it doesn't seem to be possible to ask the ocaml library for the
path separator; it doesn't seem like it would be correct on Windows to
use '/'.

Thanks!
pat

@vicuna
Copy link
Author

vicuna commented Aug 6, 2004

Comment author: administrator

Hello,

http://caml.inria.fr/ocaml/htmlman/libref/Filename.html

and basename claims:

Split a file name into directory name / base file name. concat (dirname
name) (basename name) returns a file name which is equivalent to name.

Sys.executable_name;;

  • : string = "/usr/bin/ocaml"

let n = Sys.executable_name in (Filename.dirname n)^(Filename.basename

n);;

  • : string = "/usr/binocaml"

(^) is not (concat). The (concat) mentioned in the doc is of course
(Filename.concat).

-- Damien

@vicuna vicuna closed this as completed Aug 6, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant