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