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:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=HaaS2I9g41o+aEhkjcqhHnC6pztYY 5bdcUa/uFHy897zzoaVeIsyY6/87ykD4xmUyyGE+LNHWg4xp9V2b+k/SgYzUlZ15 eVj2q82cXvdjO54k+BGcuXpuzEHnTP9zpVEC88FV0000q+oN++vxDTGzEmzRh+xI 10yQO5HPPkb9AY= 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:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=bl1fGLBTiYiNwGKQq6xOCev6Kvs=; b=paY BC+qUVyHd5pQs/HvyVnvqVUK7QOmqaxBKjYOijUka6/98gaZnVqo2uZFLH3VGY8D CHkhI6m1EV74YHWYDfqqm5QxPLyCQisBMudcu+rCNu/OwB23UrYpN4C1UszwGWPB wjizVfK/CNiRVKJGZz3mZHrPc1mC0K7An/53rom8= 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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f182.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=LLE1TfEWfmTSiqDBTcU/eFXZ3I9Zo6hzhCKSOHwf60E=; b=b9bh9I5MrhWrdwZwr7tIPediTi86KGCHG1zKo/olPZ/PRW0AZv7dhBfObzDVooqNmA nTW3blNkXAl1qrWKbP90j81PV/qKfZxeBrrSSKURK6Hc1SR4SKlPJWaNV8hA0EDpY0FL mzDVWsQKK9sYB48vfwfZfkk9KuJstVLkCKcfR1SUwDydj+wkdE0LHvouGcxLZPey/R8a jAoH3e8B2b6KJW4lVKXEdKssKQwCKFazCaeFYynxw/2FO4u50AX4j4MJo0LKKzqAAWy3 VlpexawOS8zULVA5ZXI1vxdb5wOIBQ+J0nO4Qfi1mz+wi4Qwpvo2HxwBplZi6PKi3IYG mhtw== X-Gm-Message-State: ALoCoQnX1U4PqM9pHoPakYhPTASZHM/uxqsbBfdA82MOcF+N1NJeRJRbAk8Ob4iGqmWIkU/kx14L MIME-Version: 1.0 X-Received: by 10.42.123.204 with SMTP id t12mr26444884icr.19.1403017031944; Tue, 17 Jun 2014 07:57:11 -0700 (PDT) Date: Tue, 17 Jun 2014 10:57:11 -0400 Message-ID: Subject: GNU Awk 4.0.1: Cygwin's awk is filtering CR from the input From: James Calfee To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 "It seems like the issue is awk specific under Cygwin. I tried a few different things and it seems that awk is silently treating replacing \r\n with \n in the input data." See stack overflow ticket #24251296 titled: does-awk-cr-lf-handling-break-on-cygwin Unfortunately the spam filter rejects links to stack overflow (already a spam filtered site) On Linux (good, we have cr and nl) $ echo $'line1\r\nline2'|awk 1|od -a 0000000 l i n e 1 cr nl l i n e 2 nl 0000015 On Cygwin or MSYS (bad, we have only a cr) $ echo $'line1\r\nline2'|awk 1|od -a 0000000 l i n e 1 nl l i n e 2 nl 0000014 -- 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