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

scripts Ocaml #3029

Closed
vicuna opened this issue Nov 14, 2001 · 1 comment
Closed

scripts Ocaml #3029

vicuna opened this issue Nov 14, 2001 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Nov 14, 2001

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

Bug description

Quand on écrit un script ocaml (on met #!/path/ocaml en première ligne
puis du source), Sys.interactive vaut true, donc le source ne sait pas
distinguer si on est sous un top-level (vraiment) interactif qui fait
#use, ou dans un script lancé très régulièrement par un shell.

En gros, Sys.interactive (actuel) devrait s'appeler (s'il est encore
utile) Sys.under_top_level, et un autre Sys.interactive devrait être
mis en fonction d'un critère différent (e.g. il y a des petites mains
qui tapent du code au bout de stdin :-).

Bruno.

@vicuna
Copy link
Author

vicuna commented Dec 4, 2001

Comment author: administrator

Patched 2001-12-04 by XL: set Sys.interactive to false for scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant