From: Eric Hodel Date: 2006-06-14T13:27:48+09:00 Subject: Re: ENV['x'] = nil doesn't work in 1.9 On Jun 13, 2006, at 9:19 PM, Eric Hodel wrote: > $ ruby19 -ve 'ENV["x"] = nil' > ruby 1.9.0 (2006-06-13) [powerpc-darwin8.6.0] > -e:1:in `ENV#[]=': can't convert nil into String (TypeError) > from -e:1 > > $ ruby -ve 'ENV["x"] = nil' > ruby 1.8.4 (2006-05-18) [powerpc-darwin8.6.0] Ah, I see, hash.c revision 1.150 references [ruby-list:40865] (which excite.co.jp doesn't coherently translate). It looks like ENV#delete should be used instead. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com