Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 (14:42)
From: Alan Schmitt <alan.schmitt@p...>
Subject: Re: [Caml-list] Sys.getenv does not work under OS X?
On 11 sept. 08, at 16:22, Eric Cooper wrote:

> On Thu, Sep 11, 2008 at 02:51:06PM +0200, Alan Schmitt wrote:
>> schmitta@charm compiler % echo $HOST
> 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