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: 6071 Reporter: kaustuv Assigned to:@gasche Status: closed (set by @xavierleroy on 2015-12-11T18:25:29Z) Resolution: fixed Priority: normal Severity: feature Version: 4.00.1 Fixed in version: 4.01.1+dev Category: ~DO NOT USE (was: OCaml general) Tags: junior_job Related to:#5232 Monitored by: dsheets @gasche@hcarty
Bug description
Currently if I have a visible .ocamlinit, it is loaded by default. To prevent loading it I have to run ocaml -init /dev/null (or -init some_empty_file).
Can there be a -no-init option to ocaml to avoid such hacks?
I put the option in lexicographic order rather than next to -init in the help text and modules. Also, I called it "-noinit" to match the other "-no*" flags.
.ocamlinit files in the current directory are pretty much a security issue: the files are not readily visible and can execute any code. Is this behaviour heavily relied on, does it make sense to have it as a dot-file and wouldn't it be better to have -no-init by default with a corresponding -init (or similar) flag?
Original bug ID: 6071
Reporter: kaustuv
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:25:29Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 4.00.1
Fixed in version: 4.01.1+dev
Category: ~DO NOT USE (was: OCaml general)
Tags: junior_job
Related to: #5232
Monitored by: dsheets @gasche @hcarty
Bug description
Currently if I have a visible .ocamlinit, it is loaded by default. To prevent loading it I have to run ocaml -init /dev/null (or -init some_empty_file).
Can there be a -no-init option to ocaml to avoid such hacks?
File attachments
The text was updated successfully, but these errors were encountered: