bug in stderr handling
----------------------

                 Key: JRUBY-3795
                 URL: http://jira.codehaus.org/browse/JRUBY-3795
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.3
         Environment: JRuby in Windows
            Reporter: Do Huy Hoang
            Assignee: Thomas E Enebo


=========== c.cpp --> compile to c.exe

#include <iostream>
#include <cstdio>
//#include <windows.h>
using namespace std;

int main() {
        cout << "This is a bug" << endl;
        cerr << "error message goes here" << endl;
        //sleep(5);
        //Sleep(500);
        cout << "done" << endl;
        return 0;
}
================ test.rb
system('echo Hello world!');
system('c.exe');
system('c.exe > a.log 2>&1');

================Expected output from commandline (in Windows)
C:\a>ruby test.rb
Hello world!
This is a bug
error message goes here
done
================Output from JRuby 1.3.0 (in Windows)
C:\a>jruby test.rb
Hello world!
This is a bug
done
This is a bug
done


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to