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: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Sys.getenv does not work under OS X?
Excerpts from Alan Schmitt's message of Thu Sep 11 14:51:06 +0200 2008:
> 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.

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