Open3.popen3 returns the pid as well as the in, out, and err streams. I thought only the streams were supposed to be returned. Thanks -- Nathaniel <:((><
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Nathaniel Talbott > Sent: Tuesday, March 01, 2005 8:56 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] Open3.popen3 oddity > > > Open3.popen3 returns the pid as well as the in, out, and err > streams. I thought only the streams were supposed to be returned. > > Thanks > > > -- > NathanielYeah, we cheated for the sake of open4. You usually won''t notice, since you''re going to do something like: i, o, e = Open3.popen3("whatever") I suppose if you were slurping the results into an array and only expecting there to be 3 elements, it could cause a problem. If it is a problem, please let us know and we''ll break open4 into a truly separate method. Otherwise...ssshhh. Regards, Dan
On Tue, 1 Mar 2005 11:43:36 -0600, Berger, Daniel <Daniel.Berger@qwest.com> wrote:> Yeah, we cheated for the sake of open4. You usually won''t notice, since > you''re going to do something like: > > i, o, e = Open3.popen3("whatever") > > I suppose if you were slurping the results into an array and only > expecting there to be 3 elements, it could cause a problem. If it is a > problem, please let us know and we''ll break open4 into a truly separate > method. > > Otherwise...ssshhh.OK, just noticed it and while I figured you probably already knew about it, I figured I''d mention it. Thanks -- Nathaniel <:((>< Terralien, Inc.