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

ocamlcp and ocamlmktop don't run ocamlc from the right path #8379

Closed
vicuna opened this issue Nov 21, 2003 · 1 comment
Closed

ocamlcp and ocamlmktop don't run ocamlc from the right path #8379

vicuna opened this issue Nov 21, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 21, 2003

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

Bug description

Salut,

Some trivial bugs...

This relates to Ocaml 3.08pl2 (on Debian woody).

In both tools/ocamlcp.ml and tools/ocamlmktop.ml there is a Sys.command
call to ocamlc: the ocamlc that gets run is the one in the $PATH not
the one that was installed. I noticed this when working with multiple
versions of Ocaml on my system.

Also, the arguments are not safely quoted, so for example

ocamlcp "cou cou.ml"

fails but

ocamlc "cou cou.ml"

succeeds.

-James

@vicuna
Copy link
Author

vicuna commented Jun 16, 2004

Comment author: administrator

see also #8380

  1. We have no way of knowing where the running ocamlcp was installed, so it's
    impossible to tell which
    one should be called. You need to change your PATH variable to make it find the
    right executable.
  2. Fixed, but you are not supposed to use a source file name that is not a valid
    identifier.
    --DD 2004-06-16

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