You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5363 Reporter: mcandre Assigned to:@protz Status: closed (set by @xavierleroy on 2013-08-31T10:44:02Z) Resolution: won't fix Priority: normal Severity: minor Version: 3.12.0 Category: ~DO NOT USE (was: OCaml general)
Similar to Erlang, OCaml permits shebangs in scripted mode, but borks in compiled mode. Please instruct the ocamlc and ocamlopt compilers to ignore shebangs.
The text was updated successfully, but these errors were encountered:
That definitely seems wrong to me. Either you're developing a shell script, or you're writing a compiled program. The tasks achieved by the two styles are so different that I'm having a hard time seeing why you're switching back-and-forth between interpreted and compiled.
If you're just testing some features, why don't you just run ocaml hello.ml inside a terminal?
Original bug ID: 5363
Reporter: mcandre
Assigned to: @protz
Status: closed (set by @xavierleroy on 2013-08-31T10:44:02Z)
Resolution: won't fix
Priority: normal
Severity: minor
Version: 3.12.0
Category: ~DO NOT USE (was: OCaml general)
Bug description
$ cat hello.ml
#!/usr/bin/env ocamlrun ocaml
let rec main = print_string "Hello World!\n"
$ ./hello.ml
Hello World!
$ ocaml hello.ml
Hello World!
$ ocamlc -o hello hello.ml
File "hello.ml", line 1, characters 0-1:
Error: Syntax error
$ ocamlopt -o hello hello.ml
File "hello.ml", line 1, characters 0-1:
Error: Syntax error
Similar to Erlang, OCaml permits shebangs in scripted mode, but borks in compiled mode. Please instruct the ocamlc and ocamlopt compilers to ignore shebangs.
The text was updated successfully, but these errors were encountered: