I want to setup a tool, which set the env by source a csh file.

Is there way to source csh env file in Ruby?

For the attached test case, I wrote ruby as below, but seems don't work.

#!/usr/bin/env ruby

system "source test.csh"
puts "a = #{ENV['SYSTYPE']}"

Your help will be very appreciated.

Thanks,
Previn

Attachments:
http://www.ruby-forum.com/attachment/8930/testcase.tar.gz


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