[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redirecting standard output
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: Redirecting standard output |
Date: |
Thu, 21 Apr 2011 15:25:29 +0200 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
I've spent a couple of hours reading the code in `call-process' in more
detail. Man, that's a complicated function. Thanks for the warning,
Eli. :-)
Anyway, I think that redirecting STDOUT to a file would be very easy to
implement, and would be quite non-invasive. (The code already has a
redirect-to-fd case, the /dev/null output, so there's very little code
to add. Just open something else than /dev/null, and you're there,
almost.)
However, redirecting STDERR to a buffer seems like it would be quite
complicated, unfortunately. I thought that having STDOUT and STDERR be
handled symmetrically would be a nice feature (for redirecting STDOUT to
one buffer and STDERR to another, for instance), but unless I'm reading
the code wrong (and I very well could be), I don't see an obvious way to
do that.
Does this assessment of the complexities involved seem accurate?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
- Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/20
- Re: Redirecting standard output, Stefan Monnier, 2011/04/20
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/20
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/21
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21
- Re: Redirecting standard output,
Lars Magne Ingebrigtsen <=
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/21
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/21
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21
- Re: Redirecting standard output, Lars Magne Ingebrigtsen, 2011/04/21
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/21
- Re: Redirecting standard output, Jan Djärv, 2011/04/21
- Re: Redirecting standard output, Eli Zaretskii, 2011/04/21
- Re: Redirecting standard output, Davis Herring, 2011/04/21