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

Filename.dirname strange on cygwin #3690

Closed
vicuna opened this issue Sep 15, 2002 · 2 comments
Closed

Filename.dirname strange on cygwin #3690

vicuna opened this issue Sep 15, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 15, 2002

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

Bug description

Full_Name: mattias waldau
Version: 3.06
OS: cygwin winxp
Submission from: h13n2fls34o849.telia.com (217.208.235.13)

Filename.dirname "C:\tmp\Book1.tmp";;

  • : string = "."

which isn't what you expect. However

Filename.dirname "C:/tmp/Book1.tmp";;

  • : string = "C:/tmp"

is ok!

@vicuna
Copy link
Author

vicuna commented Sep 20, 2002

Comment author: administrator

Filename.dirname "C:\tmp\Book1.tmp";;

  • : string = "."

which isn't what you expect. However

Filename.dirname "C:/tmp/Book1.tmp";;

  • : string = "C:/tmp"

is ok!

Like all Cygwin tools themselves, the Cygwin version of OCaml uses Unix file
name conventions, where \ isn't a directory separator. (Try "dirname
'C:\tmp\book1.tmp'" under the Cygwin shell, for instance.)

From the user's standpoint, Cygwin is really Unix that happens to run on top of
Windows. If you'd like to use Windows conventions, you need one of the two
other Caml Windows ports (Mingw or MSVC).

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Sep 20, 2002

Comment author: administrator

Normal behavior for a Cygwin application.

@vicuna vicuna closed this as completed Sep 20, 2002
@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