On Thu, Mar 22, 2001 at 01:00:45AM +0900, Donald Sharp wrote: > On Thu, Mar 22, 2001 at 12:37:25AM +0900, Henry T. So Jr. wrote: > > In [ruby-talk:13033], Donald Sharp <sharpd / cisco.com> wrote: > > > <snip> > > > I'd prefer the ability to munge stdout and stderr what is the proper > > > way( so I can interpret the result properly )? > > > > Try ``pipe = IO.popen( "/usr/atria/bin/cleartool 2>&1". "r+" )'' > > I can't force the end user to choose a particular shell. popen() will use /bin/sh regardless of the user's login shell, so you're definitely safe under unix. I don't know what will happen under win32 however. Perl recognizes 2>&1 even under win32 (at least, Windows NT) and the proper redirection takes place. I'm not sure if cmd.exe is doing it, or perl. -- matt