delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/15/15:46:18

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=UoaFomYUG1Wn0l6V
3D7GcnAA+0bsFxoHsgfLd+zdoomkQoXTm2dggbktY5EWlxtDVvwunhMa39wWYrNb
kaCzheFE17acw8GgyaXzOSXSzSR3zEgCGybzXB2XospIAG0sYCLe22E9b6H7pjb/
hLFmfgPyqTGtKLjaFhZyYTpOQBs=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=LsmyANpGnF4Dv6jWwLyufS
KA+jY=; b=ZnlD8jqqfNIz889HmaxV3XPQeZK5ZQgqkdhvcFRRbO2te65KQDtVLZ
2jwIiaLfr0W4sZIsg8xOJebPxv8y62kROhrM/6xMe5WTyucqYCLDsXsPP0fo2Xk+
q8gwA6WMO5S9U6zI67urcIgHNyMfBQJCx5cJvomlixLJlYyRzVuFM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:k16-v6s
X-HELO: mail-io0-f182.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=1rfgRn0RSA+xHrPcPuk/RRapqxvnoFxU4Ge8Bbs4VFc=; b=t8aRajD11dPqN+co2ltV5Tt8aLwZFeR94rShMQdTp321omVWVjRHoUkOij4eK1Zgw5 +/0oIr3QRT8ilpcCn9GWifh+xiq2B4Ybo4YyDW01DlzF4vXTAZjqwwkYZ1EwiyFSGjIB 311qd0QrjChbQJ72+38y1/nhgoQj6X0ndsnBQsnskE8B4Gv3x6COJOHM/FkEUMp1XauC MxiY9u5x8cgtSPVazVj8WoHsOa9M1K/ej01NjNCXNsJ9/XHU4yDwnL6n95qEBTYR17eq hiL3AnLE7GlFCiXyPugndWvTcBiSa6KV0/VG7QetnzxZVCw/puOY64D6zySaZtvTThug OkJw==
X-Gm-Message-State: APt69E07g/h6g5DUYxFqN6BjLq8ObfaTRCqS3N5eu53mmpEEgNjf5I9m CID0XKsJupDjXxNaNDbQRvlLxg==
X-Google-Smtp-Source: ADUXVKJ/lBpsqf6/uJl22r4ADSpLEjbP2SddawQU2hirb9lHPhM8avdXVrFxbTPQichr9P5NlWtouA==
X-Received: by 2002:a6b:a7cc:: with SMTP id q195-v6mr2628793ioe.130.1529091961955; Fri, 15 Jun 2018 12:46:01 -0700 (PDT)
Subject: Re: 2.10.0: Cygwin now can not work well with a file in dos format.
To: cygwin AT cygwin DOT com
References: <2bfeabde DOT 39a8 DOT 16403e31153 DOT Coremail DOT tuyanyi AT 163 DOT com> <0F7D3B1B3C4B894D824F5B822E3E5A177880092C AT IRSMSX102 DOT ger DOT corp DOT intel DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Openpgp: preference=signencrypt
Message-ID: <26311d64-653a-1cc4-2cfd-d49b3c86de0e@gmail.com>
Date: Fri, 15 Jun 2018 15:45:48 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A177880092C@IRSMSX102.ger.corp.intel.com>
X-IsSubscribed: yes


On 6/15/2018 11:11 AM, Soegtrop, Michael wrote:
> Dear Tuyanyi,
> 
> what has been changed in sed and awk is handling of carriage returns. The sed and awk of older Cygwin version strip \r from the input. Newer versions behave like the same tools on Linux and don't strip CR. This is documented in the release notes, intended behavior and has been discussed quite extensively on the list (I complained about the same issue some-time last year).
> 
> The options you have is either to strip the \r characters away first (e.g. using tr) or to compile old versions of awk and/or sed from sources.
> 

The best option is to follow the suggestions in the manual.
https://www.gnu.org/software/gawk/manual/gawk.html#Cygwin

-- 
cyg Simple

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019