[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does eshell support stderr redirection?
From: |
Hongxu Chen |
Subject: |
Does eshell support stderr redirection? |
Date: |
Wed, 26 Jun 2013 20:51:24 +0800 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Does eshell support stderr redirection?,
Hongxu Chen <=