This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bind-utils output not to stdout (was: Dig output not piping to xargs)
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Fri, 14 Nov 2014 13:25:25 +0000 (UTC)
- Subject: Re: bind-utils output not to stdout (was: Dig output not piping to xargs)
- Authentication-results: sourceware.org; auth=none
- References: <544C158C dot 9010006 at kset dot org> <BLU436-SMTP542C599ED7913A9F735817E4910 at phx dot gbl>
Alive <alive4ever <at> 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