[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: export environment variable

Gennady Bystritsky

10/4/2006 5:38:00 PM

Mohammad Khan wrote:
> I would like to accomplish something like this in a ruby script
>
> export RUBYLIB=$HOME/MyLib/

ENV['RUBYLIB'] = File.expand_path('~/MyLib/')

Gennady.

1 Answer

Jano Svitok

10/4/2006 6:10:00 PM

0

On 10/4/06, Mohammad Khan <mkhan@lextranet.com> wrote:
> This is going to be local to the script.
> I want something like, global.

As far as I know, you can't do that even in bash (that = export
variables from a subshell to the parent).

J.