Hey Previn,

I think the issue is that the "system" method runs a command in a 
subshell, and therefore your program's executing environment doesn't 
actually ever change

Check out this link for more info: 
http://stackoverflow.com/questions/2232/calling-bash-commands-from-ruby

Maybe you could achieve what you are looking for by wrapping it in 
another ruby script, ie:

Script 1:
system "source test.csh && ruby script_2.rb"

Script2:
puts "a = #{ENV['SYSTYPE']}"

-- 
Posted via http://www.ruby-forum.com/.