From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72801 invoked by alias); 12 Feb 2017 11:32:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 72732 invoked by uid 89); 12 Feb 2017 11:32:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 12 Feb 2017 11:32:25 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id D010D721E281A for ; Sun, 12 Feb 2017 12:32:22 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 28D6D5E0210 for ; Sun, 12 Feb 2017 12:32:22 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 0D66DA80CD3; Sun, 12 Feb 2017 12:32:22 +0100 (CET) Date: Sun, 12 Feb 2017 11:32:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated [test]: sed-4.4-1 Message-ID: <20170212113222.GF11666@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <589f97c1.1c139d0a.60fe5.98e2@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="F8dlzb82+Fcn6AgP" Content-Disposition: inline In-Reply-To: <589f97c1.1c139d0a.60fe5.98e2@mx.google.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-02/txt/msg00159.txt.bz2 --F8dlzb82+Fcn6AgP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1387 On Feb 11 15:01, Steven Penny wrote: > 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 >=20 > This is great, but can we do it for Awk too? >=20 > $ 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 >=20 > Currently you have to make this awful incantation: >=20 > $ unset POSIXLY_CORRECT > $ printf 'hello world\r\n' | awk -vBINMODE=3D1 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 >=20 > BINMODE only gets parsed on the command line; it is not recognized even i= n the > BEGIN section. This makes it impossible to write portable Awk scripts with > respect to carriage returns. I understand the desire but it's s a pretty tricky problem. awk is used to manipulate text input in the first place so it treats all input, files as well as stdin, as text. So, shall we drop this behaviour for files only? Or for stdin as well? How many existing setups are bound to fail after a change? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --F8dlzb82+Fcn6AgP Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYoEfFAAoJEPU2Bp2uRE+gRd4P/iFI/ZsHCpZa1zg8Z8dChHZM n0QykqCsPXEO4V7MQcfbUOybAJe6xCpMCoaz8jpqlpbbcZzNdwRyDv5Zt9mdx692 sojwKUil5lNQK1YW73l2WjETq97h2pMmLGJ6aekd49kmCOZ85xTk45A1o5IcG/zR 2ZLBbsdLNtRzY9NjaYVdiEvh8yKdwh8rdpfQYBRC3WSBDvssT3uoBPTS5McZI/hF 29vLghH5ivi5v0xjsxs/kBgA3ulZWVg8xbz661AFybMA6ew7OZAGlJf+KiBUvExi 3DUJAlYy1vIQhC1yLDQ3rCANylUKWz7tnn3z7t6+UhqS/H9KO9uW01XSQglHT8j6 fNPvpczYkoawf2SdgthvIY893k7abV43m/4l/B5cXKDtyRrDWEtdOrM2Ng22q+/r kaWaiP4SG91jzEkMsG4p8kk0Tu9+V2kFdigAtjL3aAPo5xF9LzItU1rVOvBew4kX adqTeMzu0jx5PSmYgyDQYTCc0tOClSpch9n4Df/V/GKFY4KlZDPqBXfZEv/dzt+q piM09ABz2en6u4wvECtkcosStzEiEQWMzMws6Ggq4856VzlQtIGCSXnIer91m3XX 46aNg4Y7tOS/SNesmLqnLqYjiwQSWj1FhaBVVDJeRzAFcQHVNVei5HsXz2aEYBTG afOlgNnmGEgHIlf/hKqB =q1wN -----END PGP SIGNATURE----- --F8dlzb82+Fcn6AgP--