X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org X-Mail-Handler: MailHop Outbound by DynDNS X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX185J6a7TwacsOAmVh4/BhlG Date: Wed, 11 Jan 2012 17:30:24 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: "Bad address" error with redirection (stdout and stderr) in background process Message-ID: <20120111223024.GA15189@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20120111152021 DOT GB5264 AT ednor DOT casa DOT cgf DOT cx> <20120111191441 DOT GA14003 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120111191441.GA14003@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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