I'm using OS X (Leopard, up to date), with ocaml 3.10.2 (compiled with
godi), and I was trying to use htmlc which fails for some reason. it
boils down to the following:
schmitta@charm compiler % echo $HOST
charm.inrialpes.fr
schmitta@charm compiler % ledit ocaml
Objective Caml version 3.10.2
# Sys.getenv "$HOST";;
Exception: Not_found.
# Sys.getenv "HOST";;
Exception: Not_found.
Is Sys.getenv supposed to work under OS X?
Thanks a lot,
Alan Schmitt
cheers
christian
>
>
> Is Sys.getenv supposed to work under OS X?
>
> Thanks a lot,
>
> Alan Schmitt
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
Wrong
> # Sys.getenv "HOST";;
> Exception: Not_found.
Should work
> Is Sys.getenv supposed to work under OS X?
I'm guessing some special thing for HOST, since it work for HOME
--
Nicolas Pouillard aka Ertai
Are you sure HOST is an environment variable, and not just a variable
that's set in your shell? You can use "printenv HOST" to check.
--
Eric Cooper e c c @ c m u . e d u
> On Thu, Sep 11, 2008 at 02:51:06PM +0200, Alan Schmitt wrote:
>> schmitta@charm compiler % echo $HOST
>> charm.inrialpes.fr
>
> Are you sure HOST is an environment variable, and not just a variable
> that's set in your shell? You can use "printenv HOST" to check.
Thanks for all the answers, this is the problem. I don't know what
sets "HOST" but I had to export it to be able to access it.
Thanks again for helping me find the culprit.
Alan Schmitt