4 ms·
It depends. Standard output is for program output. Standard error is something of an unfortunate name since it's actually a side channel for all non-output mes
by matheusmoreira 3y ago
It depends.
Standard output is for program output. Standard error is something of an unfortunate name since it's actually a side channel for all non-output messages meant for the user to read.
So what's "output" anyway? Whatever the user asked the program to compute. If you pass a --help option, the help message is clearly the program's output because it's what the user asked for. If you use it incorrectly and the program prints usage information, the help message should go to standard error while the output is empty because the operation failed.