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:to:subject:references :content-type; q=dns; s=default; b=JTovzl7RYPaDhk8HX+BzuHwXU8aLn 8hRiTaQzs7Iw6B859LzIStmCHRSTWZP183lrdg8XIyS3+ueAfFEDV9hxtxfFZx5H vprHTlbGSPAqQd4qPIoC2kasgq5asaLI/yIXaKn+CGiE6XCrrICedAP0JfNzmjJf gYIe54njRHG3zA= 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:to:subject:references :content-type; s=default; bh=d4g1zyuhmfru7OC8elTkhnpqwTs=; b=DNc RxQWEfonZYL+Qt1rSM+UhSZe6OKI96c3DrUKYSumtwJXkIQXHUmX93AcP+ogX1DO Og/fc2CgQIbE84y3KCBnpIyYhGiH6eVAWva7ccXZ+j3JnabPE2KlQrHnCW46FHbE qlTNavlm2XvS8s0s4bIdRN++1sWOu3vkvkeP/XiA= 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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=awful, BEGIN, H*M:98e2, H*r:6000 X-HELO: mail-oi0-f66.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:subject:references :user-agent; bh=YkkLFiN4pGw7u1B4B2stwrCUCch6qORqT75Qmcm7yuo=; b=QI1/k0F8cH2OLbHzP6aP8p+EX0ndRkTxZEH/shJer6d33IOQz9WcQNdfZSpoi+ze+p gPc5mhDpbeHaLNOb8T/FLn5Sv9hj5H+HDSI3M1UX8Yc5WZI2Z3UDaz0QTv7k82vO/H4g 4QUnkTvzCdUqUQMZQHCMEQKaqI9bsEJf4+vhXDIVcbFPHVXo1Z5fHbSXTAz/mYYp0cbq 0t7HSNwfdPazc7K8LKUalepWayKK0Y5lYhGqmzuYCtgeisdI/RsgSOtj1ZydkAm5+ZG7 844g7iee/o2WK9zrP0Fb+U5FwIRP+SUNy2BeDCVZj0Mm8WBN6Go2evrIXmTotC5fJs6N Anbg== X-Gm-Message-State: AMke39n0GOTu01Y3f4l0Xbb13o/cKARGOs15Yj4NcPpcI5yKzcl7aIjbgqOGs++xdyaGag== X-Received: by 10.202.3.197 with SMTP id 188mr8636367oid.31.1486854082261; Sat, 11 Feb 2017 15:01:22 -0800 (PST) Message-ID: <589f97c1.1c139d0a.60fe5.98e2@mx.google.com> Date: Sat, 11 Feb 2017 15:01:21 -0800 (PST) From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated [test]: sed-4.4-1 References: Content-Type: text/plain; charset=UTF-8 User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) On Sat, 11 Feb 2017 11:06:17, "Eric Blake (cygwin)" wrote: > I made a tweak that no longer automatically strips carriage returns from > input on binary mounts This is great, but can we do it for Awk too? $ printf 'hello world\r\n' | awk 1 | od -tcx1 0000000 h e l l o w o r l d \n 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a Currently you have to make this awful incantation: $ unset POSIXLY_CORRECT $ printf 'hello world\r\n' | awk -vBINMODE=1 1 | od -tcx1 0000000 h e l l o w o r l d \r \n 68 65 6c 6c 6f 20 77 6f 72 6c 64 0d 0a BINMODE only gets parsed on the command line; it is not recognized even in the BEGIN section. This makes it impossible to write portable Awk scripts with respect to carriage returns. -- 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