Hi,

Here's an interesting phenomenon:

[ianmacd / baghdad]$ irb
irb(main):001:0> ENV['PATH']
=> "/usr/bin:/bin:/usr/X11R6/bin:/usr/pubsw/bin:/usr/kerberos/bin"
irb(main):002:0> ENV['PATH'].sub!(%r(:/usr/kerberos/bin), '')
=> "/usr/bin:/bin:/usr/X11R6/bin:/usr/pubsw/bin"
irb(main):003:0> ENV['PATH']
=> "/usr/bin:/bin:/usr/X11R6/bin:/usr/pubsw/bin:/usr/kerberos/bin"
irb(main):004:0> puts VERSION
1.8.0
=> nil

Why doesn't the sub! work in line 002? It returns the correct answer,
but ENV['PATH'] is not modified in-place. I've verified that the
behaviour is the same in 1.6, too.

Ian
-- 
Ian Macdonald               | If little green men land in your back yard,
System Administrator        | hide any little green women you've got in
ian / caliban.org             | the house.   -- Mike Harding, "The Armchair
http://www.caliban.org      | Anarchist's Almanac" 
                            |