>>>>> "X" == Xandy Johnson <xandy / fgm.com> 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