From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8900 invoked by alias); 14 Nov 2014 13:25:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8884 invoked by uid 89); 14 Nov 2014 13:25:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 14 Nov 2014 13:25:39 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XpGsZ-00016E-14 for cygwin@cygwin.com; Fri, 14 Nov 2014 14:25:35 +0100 Received: from S010690fba62c4bda.cg.shawcable.net ([68.147.206.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Nov 2014 14:25:35 +0100 Received: from Brian.Inglis by S010690fba62c4bda.cg.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Nov 2014 14:25:35 +0100 To: cygwin@cygwin.com From: Brian Inglis Subject: Re: bind-utils output not to stdout (was: Dig output not piping to xargs) Date: Fri, 14 Nov 2014 13:25:00 -0000 Message-ID: References: <544C158C.9010006@kset.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00356.txt.bz2 Alive live.com> writes: > On 10/26/2014 4:26 AM, Marko Božiković wrote: >> I have recently noticed that dig +short output is not being properly piped to >> xargs (and it used to work) >> Doing something like: >> echo aaa | xargs -I {} echo {} >> works fine. >> However: >> dig +short www.google.com | xargs -I {} echo {} >> produces no output. >> I'm running Cygwin x64, tried a fresh install and it didn't help. Attached is >> the cygcheck output. Interestingly enough, cygcheck segfaults if I run it from >> bash. I had to run it from TCC to get the output file. > I can confirm this behavior. `dig +short` always writes it output to the > terminal and cannot be redirected. > $ dig +short google.com > 74.125.68.101 > 74.125.68.138 > 74.125.68.100 > 74.125.68.102 > 74.125.68.139 > 74.125.68.113 > $ dig +short google.com | tee dig.txt > $ cat dig.txt > (no text is shown) > $ dig +short google.com 2>&1 | tee dig.txt > $ cat dig.txt > (no text is shown) All bind-utils - host, nslookup, dig - output not to stdout or stderr - can not be redirected, but redirection suppresses output, with current update 9.9.6-2 but works with previous 9.9.5-3 and current cygwin release. Have not tested nsupdate but likely to have same problem. Has anyone seen a similar problem? -- 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