From: ts Date: 2002-11-05T22:14:54+09:00 Subject: Re: Newbie Problem with Shell#transact >>>>> "X" == Xandy Johnson writes: X> "Why?" #transact use #instance_eval With X> sh.transact do X> results = jar("tf", jarfile) | grepcmd(@pattern) @pattern is interpreted as an instance variable of `sh' and not an instance variable of JarGrepper object, i.e. pigeon% ruby class A; attr_accessor :a; end a = A.new a.a = 12 @a = 24 a.instance_eval do p @a end ^D 12 pigeon% Guy Decoux