From: Reacher Date: 2008-02-08T00:59:56+09:00 Subject: Re: ENV On Feb 7, 9:52 am, RVC planning wrote: > Mac OS X example scripts have the command (directive/statement/?)... > ENV['BRIDGE_SUPPORT_PATH'] = '/Volumes/Data/src/svn-rubycocoa-apple/ > framework/bridge-support' > > I can't find any write-up of this line anywhere. It's in > RSSPhotoViewer in Developer/Examples/Ruby/RubyCocoa/RSSPhotoViewer/ > rb_main.rb > > Can someone please explain what this is, what it does, and where it is > documented? I've never worked on a Mac, but the ENV hash en ruby is a mechanism for accessing environment variables. This: # in ruby ENV['PATH'] = '/usr/bin' is equivalent to this: /* in csh */ setenv PATH "/usr/bin"