X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=MBnl1/MVT3tzgt1aYaU410hXflF9I7rnEpPlojlzIgT bqFgdPdwSCeCmSITjIH+RofOE9XmSCbIHHBPreMJSeCv5PhWUTt82huKF7EMzSzJ 1hExda9GgppKD5HQckmaxa8qdxinNio5JqWhrhI5Ga3mSBQYRg1xkBjZ/7vPL824 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=o8WKwn9h3fhlnw7+p2nKovXzrXs=; b=eb07oTArQ8n17XNPg /wbDjUSkc3M9t6MbAnJYQMSmGr3EJqiwyHCnjmNAomjDDhLIyYzO8XloVXV2Kb20 16GyP9sukasTjrJW3HFRPOndhvyafjqoCwqEXj2/7RG7cjFYfx6jd3NlGuQ/Xyea /Qw5FJdzeDPrGvgSFzsgtSXByA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: BLU004-OMC1S33.hotmail.com X-TMN: [86Mdx1KI13LweDBJTkKKetGLxGv78lhW] Message-ID: Date: Sun, 26 Oct 2014 13:07:35 +0700 From: Alive User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Dig output not piping to xargs References: <544C158C DOT 9010006 AT kset DOT org> In-Reply-To: <544C158C.9010006@kset.org> Content-Type: text/plain; charset="utf-8" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s9Q67wFD000687 On 10/26/2014 4:26 AM, Marko Božiković wrote: > Hi all, > > 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. > > Thank you, 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) ``` I think it's a good idea to package `unbound` as an alternative to `bind` for dns related tasks. -- 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