[Vm-dev] A simple getenv primitive
Bert Freudenberg
bert at freudenbergs.de
Thu May 3 09:26:39 UTC 2012
On 03.05.2012, at 10:24, Damien Cassou wrote:
> Hi,
>
> I can't find any getenv primitive that would allow me to access
> environment an variable value from its name. This could be really
> helpful to get the HOME directory for example. Does one such primitive
> exist? If not, why? It looks trivial to implement for linux, and it is
> potentially also easy on Windows and Mac OS. I'm willing to try if
> necessary.
>
> Thank you
OSProcess thisOSProcess environmentAt: 'HOME'
=> '/Users/bert'
- Bert -
More information about the Vm-dev
mailing list