I'm facing a weird problem; whenever I run a command in eshell
(wether it is a simple command, a complex application or a toy example) every output which should go towards stderr
goes to stdout
instead.
This is an example:
#include <iostream>
int main()
{
std::cerr << "ERROR\n";
std::cout << "OUTPUT\n";
}
I get the following:
~ $ ./a.out 2> /dev/null
ERROR
OUTPUT
Launching the same command with shell
, term
or an external terminal works as expected. Even launching either dash
, sh
or bash
inside eshell
and then launching the program works.
Is this an eshell
bug? Could it be some wrong configuration from my side?
My emacs version is GNU Emacs 24.3.1
Thank you, Nikolas