From: Tanaka Akira Date: 2011-02-14T12:52:05+09:00 Subject: Re: System calls with ` in parameters 2011/2/10 Robert Klemme : > Is there also a version which would return an IO or accept a block > with IO parameter so we can feed something into the head of the > pipeline and read from the tail? % ruby -ropen3 -e ' Open3.pipeline_w(%w[head -6c], %w[cat -n]) {|w| w.write "ab\ncd\nef\n" }' 1 ab 2 cd % ruby -ropen3 -e ' Open3.pipeline_r(["echo", "foo`bar`baz"], ["head","-6c"]) {|r| p r.read }' "foo`ba" -- Tanaka Akira