Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
ocaml (toplevel) should have a -no-init option #6071
Original bug ID: 6071
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?
Comment author: Camarade_Tux
.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?