From: Robert Dober Date: 2006-08-15T02:08:54+09:00 Subject: Re: Setting Windows Environment Variables ------=_Part_71268_31198442.1155575330376 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 8/14/06, Austin Ziegler wrote: > > On 8/14/06, Robert Dober wrote: > > ENV cannot be assigned too. > > >> ENV["PATH"] > =3D> "C:\\Ruby\\bin;..." > >> ENV["PATH"] +=3D ";C:\\tmp" > =3D> "C:\\Ruby\\bin;...;C:\\tmp" > >> system("cmd") > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\home>PATH > PATH=3DC:\Ruby\bin;...;C:\tmp > > The environment CAN be assigned to. What you can't do is propagate it > upwards. Any processes you spawn from your Ruby application will use > your new environment table, but you can't call a Ruby application to > set your environment in its parent. > > -austin > -- > Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ > * austin@halostatue.ca * http://www.halostatue.ca/feed/ > * austin@zieglers.ca > > This is very nice got my test upwards down, hmmm, ENV is not a hash but reponds to the same methods as a Hash, thus element assignment. Sorry for the noise. --=20 Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_71268_31198442.1155575330376--