Redirection to stderr

Peter Schneider cygwin-mailinglist@schneiderp.de
Mon Jul 10 13:41:00 GMT 2017


On Mon, July 10, 2017 14:55, Andrey Repin wrote:
> Greetings, cygwin-mailinglist!
>
>> On Mon, July 10, 2017 12:33, Marco Atzeri wrote:
>>>
>>> On 10/07/2017 11:06, cygwin-mailinglist wrote:
>> [...]
>>>> Rationale aside, it is a bug, isn't it?
>>>
>>> I guess a side effect of a lost race.
>
>> Which race, exactly?
>
> echo aaa > a
> cat a > a

The problem with "cat a > a" is entirely unrelated to "some-cmd
2>/dev/stderr". (Apart from /dev/stderr not being a regular file, some-cmd
does not receive a path argument which it tries to open, the way "cat a"
does.)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list