{"id":66,"date":"2009-05-18T17:15:00","date_gmt":"2009-05-18T22:15:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=66"},"modified":"2010-02-10T23:22:20","modified_gmt":"2010-02-11T04:22:20","slug":"cygwin-ambiguous-redirect","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2009\/05\/18\/cygwin-ambiguous-redirect\/","title":{"rendered":"Cygwin: Ambiguous redirect"},"content":{"rendered":"<p>An interesting thing happened today &#8230;I was trying to redirect some input to \/dev\/null in cygwin&#8230;using something like:<br \/><span style=\"font-family: courier new;\">some_exec -p params 2>&amp;\/dev\/null | grep blah<\/span><br \/>I kept getting an error : bash: Ambiguous redirect.<br \/>I then realized that I should probably doing a simple direct and not a re-direct&#8230;seemed to solve my problem.  Come to think of it&#8230;it makes sense, why should I need to redirect when I&#8217;m sending it to \/dev\/null&#8230;should simply be able to direct it using:<br \/><span style=\"font-family: courier new;\">some_exec -p paraa 2>\/dev\/null | grep blah<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An interesting thing happened today &#8230;I was trying to redirect some input to \/dev\/null in cygwin&#8230;using something like:some_exec -p params 2>&amp;\/dev\/null | grep blahI kept getting an error : bash: Ambiguous redirect.I then realized that I should probably doing a simple direct and not a re-direct&#8230;seemed to solve my problem. Come to think of it&#8230;it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[205,229],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-howto","tag-cygwin","tag-error"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions\/101"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}