Version française
Home     About     Download     Resources     Contact us    
Browse thread
Sys.getenv does not work under OS X?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christian Sternagel <christian.sternagel@u...>
Subject: Re: [Caml-list] Sys.getenv does not work under OS X?
Alan Schmitt wrote:
> Hello,
> 
> 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.
Maybe you ment
  Sys.getenv "HOSTNAME"
?

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