[m-rev.] diff: io.get_environment_var on java

Paul Bone pbone at csse.unimelb.edu.au
Thu Aug 13 11:11:59 AEST 2009


On Thu, Aug 13, 2009 at 11:05:48AM +1000, Peter Wang wrote:
> Branches: main
> 
> Make io.get_environment_var really look up environment variables on Java.
> Previously it looked up "system properties", probably because Java versions
> 1.2 through 1.4 didn't support looking up of environment variables, due to
> the (unfortunately not life-threatening) medical condition called HUA.
> 
> library/io.m:
>         Make io.get_environment_var really look up environment variables
>         on Java.
> 
>         Make io.set_environment_var throw an exception on Java as it
>         isn't supported.
> 

When you use 'command()' to run a sub command and wait for it in Java does it
support environment variables?  If so keeping a map of changed environment
variables can be used to override any set for sub-processes as well as any
retrieved by io.get_environment_var.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20090813/d50d3e75/attachment.sig>


More information about the reviews mailing list