From: Massimiliano Mirra Date: 2002-07-09T17:22:28+09:00 Subject: Re: Redirecting standard error On Tue, Jul 09, 2002 at 06:04:49AM +0900, Gilles Filippini wrote: > irb(main):004:0> redir(out, err) do > irb(main):005:1* `ls dsfgdsfgsdgsdg` > irb(main):006:1> end > ls: dsfgdsfgsdgsdg: No such file or directory <= shouldn't have been > printed here > "" > irb(main):007:0> out.to_s > "" > irb(main):008:0> err.to_s > "" <= but here > irb(main):009:0> I've only tested it for $stderr. Seems like commands' stderr doesn't go to $stderr, though, in which case I'd be curious to know where it goes, if anyone knows. (Is this maybe related to the old issue of Open3 and how to get a command's standard error?) Massimiliano