This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "Bad address" error with redirection (stdout and stderr) in background process


On Wed, Jan 11, 2012 at 02:14:41PM -0500, Christopher Faylor wrote:
>On Wed, Jan 11, 2012 at 10:20:21AM -0500, Christopher Faylor wrote:
>>On Wed, Jan 11, 2012 at 03:05:26PM +0000, Heiko Elger wrote:
>>>I stripped down the problem to the following testcase:
>>>
>>>$ cat ./testcase.sh
>>>#!/bin/sh
>>>(( echo 123 ; cmd /c echo 456 ) |& tee tee.log ) &
>>>
>>>executing the testcase will produce thr following output:
>>>$ ./testcase.sh
>>>$ 123
>>>./testcase.sh: line 2: /cygdrive/c/Windows/system32/cmd: Bad address
>>>
>>>If only redirecting stdout to tee all works fine.
>>
>>Do I infer from the above that you rigorously tried all snapshots
>>through August and that was the first that worked or (more likely) you
>>haven't tried a snapshot since August and now noticed a problem?
>
>No need to answer that.  The upcoming snapshot should fix the problem.

I forgot to say: Thanks for the simple test case.  Those are always
much appreciated.

cgf

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]