Aassume the value of $LD_LIBRARY_PATH is "/usr/dt/lib:/usr/local/lib".

In ruby, I do setting below.

ENV['LD_LIBRARY_PATH']='/home/test/LDPATH:/usr/dt/lib:/usr/local/lib',

then I want to check it with csh 'env' command as below.

 %x[ /bin/csh -c 'env' ].each_line do |_line|
                        puts _line
 end

But still get LD_LIBRARY_PATH=/usr/dt/lib:/usr/local/lib.

Seems the 'LD_LIBRARY_PATH' setting in ruby don't influence the output
of csh 'env' command, Why? And how can we make the setting take effect
in c shell env also?

Thanks,
Previn

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