From: Ben Zealley Date: 2006-07-27T04:35:05+09:00 Subject: Re: Ruby and *NIX environment variables Well, I've bullied them into giving me access to a box, and got Ruby, RubyGems and session installed and apparently working - by reference to about three *nix newbie tutorials, but still, it's working :) In the name of simplicity (my manager is unlikely to be happy with anything as complex-looking as the second code sample you gave me, which did work - thankyou!), I'd like to use your original example. However, I'm getting the following error: [root@pc2461 ~]# ruby ara.rb ara.rb:18: warning: default `to_a' will be obsolete ara.rb:18: warning: default `to_a' will be obsolete ara.rb:22:in `[]=': can't convert Object into String (TypeError) from ara.rb:22 from ara.rb:22 I've tried playing around a bit but I can't seem to get much more than that. Although "updated" ends up as an Array it only contains one value (which is just of type Object, and doesn't correspond to any obvious objects like "nil"...). (I've wrapped the "real" .sh I want to capture variables from - it sets 8) Do you have any guesses as to why that's happened? Thanks so much for taking the time to help me with this! -- Ben "Life is "trying things to see if they work"." - Ray Bradbury