On Nov 19, 2013, at 4:08 AM, Robert Klemme <shortcutter / googlemail.com> =
wrote:

> On Tue, Nov 19, 2013 at 8:43 AM, Gennady Bystritsky
> <gennady-ruby / bystr.com> wrote:
>>=20
>> On Nov 18, 2013, at 11:08 PM, Robert Klemme =
<shortcutter / googlemail.com> wrote:
>>=20
>>> On Tue, Nov 19, 2013 at 5:28 AM, Previn Lin <lists / ruby-forum.com> =
wrote:
>>>> I want to setup a tool, which set the env by source a csh file.
>>>>=20
>>>> Is there way to source csh env file in Ruby?
>>>>=20
>>>> For the attached test case, I wrote ruby as below, but seems don't =
work.
>>>>=20
>>>> #!/usr/bin/env ruby
>>>>=20
>>>> system "source test.csh"
>>>=20
>>> The shell cannot read a CSV file that way.  Even if using the output
>>> in Ruby would work that code breaks already in the shell.
>>=20
>> Why CSV? The original poster asked about CSH (Unix C Shell) =
environment propagation to Ruby.
>=20
> My bad. This is embarrassing.  I am sorry.

No problem :-). With so many useful tips and solutions you provide on =
this list, you are entitled to an occasional misread ;-). Thanks a lot =
for your work.

Gennady.

>=20
> Kind regards
>=20
> robert
>=20
>=20
> --=20
> remember.guy do |as, often| as.you_can - without end
> http://blog.rubybestpractices.com/