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

Unix.open_process_out/Windows XP/Ocaml 3.07-pl2 #8339

Closed
vicuna opened this issue Oct 27, 2003 · 1 comment
Closed

Unix.open_process_out/Windows XP/Ocaml 3.07-pl2 #8339

vicuna opened this issue Oct 27, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 27, 2003

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

Bug description

The following program does not work on Windows:

open Printf

let main =
let outchnl = Unix.open_process_out "../fpasm.exe" in
()

Unix.open_process_out reports:

"'..' is not recognized as an internal or external command,
operable program or batch file."

Which apparently comes from cmd.exe. If I replace the slash with a
backslash the open_process_out call works as expected.

Obviously I don't want to start using backslashes in my paths when
running on Windows. Could this be fixed automatically? It is my
understanding that OCaml does these conversions for some library
functions.

Best regards,
Janne Hellsten

@vicuna
Copy link
Author

vicuna commented Feb 14, 2004

Comment author: administrator

Issue with Windows shell cmd. Not OCaml's problem. Can be worked around
portably by using Filename.concat and Filename.parent_dir_name.

@vicuna vicuna closed this as completed Feb 14, 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