English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2008-09-11 (12:59)
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