This is the mail archive of the
mailing list for the Cygwin project.
Re: Redirection to stderr
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin-mailinglist at schneiderp dot de, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 10 Jul 2017 12:33:06 +0200
- Subject: Re: Redirection to stderr
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com>
On 10/07/2017 11:06, cygwin-mailinglist wrote:
thanks for your reply. I'm mailing you personally because at first I only
subscribed to the mailing list digest (so I didn't receive your response
directly) and cannot or don't know yet how to reply to your mail to the
list which I only see in the web archive.--
reply to both.
As to your question: The redundant redirection of "stderr to itself"
appears in the context of a larger system of scripts which permit
configuring the destination of the redirection. The original reads
something like ''2> "$STDERR_TARGET"''. The elegance is that I can
configure where diagnostic output goes by simply setting an environment
variable. The scripts simply use whatever "file system location" (possibly
/dev/stderr) is configured.
Rationale aside, it is a bug, isn't it?
I guess a side effect of a lost race.
Redirecting something on itself it is not guarantee to work.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple