From: Yossef Mendelssohn Date: 2008-11-13T23:42:53+09:00 Subject: Re: Need tutoring on using a path environment variable On Nov 12, 6:20 pm, Rolando Abarca wrote: > you can always store the path before and reset it after the system call: > > old_path = ENV['path'] > ENV['path'] << ENV['PW_PATH'] > system(...) > ENV['path'] = old_path First, >> str = 'blah' => "blah" >> old_str = str => "blah" >> str << 'test' => "blahtest" >> str => "blahtest" >> old_str => "blahtest" Maybe you mean ENV['path'] += ENV['PW_PATH'], or maybe you mean old_path = ENV['path'].dup Second, paths have separators, so simply sticking two different path strings together is going to make something strange at the join. Third, I think you mean ENV['PATH'], not ENV['path']. HTH HAND -- -yossef