-
-
Save dsheets/27fcbd21a3bf5fcba8af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ocaml | |
let toplevel = Sys.getenv "OCAML_TOPLEVEL_PATH" | |
;; | |
print_endline toplevel | |
;; | |
let topfind = open_in (Filename.concat toplevel "topfind") | |
;; | |
print_endline (input_line topfind) | |
;; | |
close_in topfind | |
;; | |
#use "topfind" | |
#require "unix" | |
--------------------------------------------------------------------- | |
# ./ocaml_script.sh | |
/root/.opam/system/lib/toplevel | |
(* $Id: topfind_rd1.p 178 2012-07-09 09:20:31Z gerd $ -*- tuareg -*- *) | |
Cannot find file topfind. | |
Unknown directive `require'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment