From: Hongxu Chen <leftcopy.chx@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Does eshell support stderr redirection?
Date: Wed, 26 Jun 2013 20:51:24 +0800 [thread overview]
Message-ID: <87fvw5c9wz.fsf@gmail.com> (raw)
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
reply other threads:[~2013-06-26 12:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvw5c9wz.fsf@gmail.com \
--to=leftcopy.chx@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.