From: ts Date: 2002-11-05T18:54:57+09:00 Subject: Re: Newbie Problem with Shell#transact >>>>> "X" == Xandy Johnson writes: Write it like this X> class JarGrepper X> attr_writer :pattern X> def jartoc(jarfile) X> sh = Shell.new pattern = @pattern X> sh.transact do X> results = jar("tf", jarfile) | grepcmd(@pattern) results = jar("tf", jarfile) | grepcmd(pattern) X> puts results X> end X> end X> end Guy Decoux