* Does eshell support stderr redirection?
@ 2013-06-26 12:51 Hongxu Chen
0 siblings, 0 replies; only message in thread
From: Hongxu Chen @ 2013-06-26 12:51 UTC (permalink / raw)
To: help-gnu-emacs
It seems that eshell doesn't support stderr redirection with the syntax
like "my-prog 2>my-file". For instance, for a c snippet,
// test-stderr.c
#include <stdio.h>
int main(void) {
fprintf(stderr, "stderr\n");
fprintf(stdout, "stdout\n");
return 0;
}
when I compile and run
> gcc test-stderr.c -o test-stderr
> test-stderr 2>my-file
eshell still has output to the screen and `my-file' is blank. However,
when I run:
> test-stderr >my-file
`my-file' contains both stdout and stderr output but no output to *eshell*.
So is there any way to tell eshell to handle it?
Thanks,
Hongxu Chen
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-26 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26 12:51 Does eshell support stderr redirection? Hongxu Chen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.