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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=bW+ gzJJev4dYty5TE+BALK1me90ZXJTIJbwlTGYzOWel7Ma5jor0SWDCixc7FOQiEET CJMJZCEmlR4QMR1CktO2mEzCSjyjpDsqUdF/VOfwWroFxX6n3dAYSpOHDfkpqHWv 3BffrLR6LX4pDJF0UQHouQM4zFtYpRhoW+LtNISY= 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=Fhk0paiEi oM1fHNoZ/ThgjNAF4k=; b=PGSzl7+jU1+gzb4c6V6Nyp9UA/lG+TRm56s6qbY3M 2urNcKPcYKgiubAbRdjaviKNn5PgXhErGKU7SDfACpNTDuCC5EHvwaEaZrGjsWAZ WRG/AIaVkKGzAq7LRw/bLlz2o3M2b33BvrkZs6IHA+Exu85aPkAUJFCJdzlwuLdW wI= 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 X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,SPF_PASS autolearn=ham version=3.3.1 From: Paul Becker To: "cygwin AT cygwin DOT com" Subject: sed match DOS end of line Date: Thu, 27 Jun 2013 13:28:39 +0000 Message-ID: <01E9402441FFBB4BBEA0A82549A7D94A0C27C5@ORD2MBX02C.mex05.mlsrvr.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id r5RDSuxB022466 > From: On Behalf Of Corinna Vinschen > Sent: Thursday, June 27, 2013 6:49 AM > Subject: [ANNOUNCEMENT] Updated: sed-4.2.2-2 > > I've just updated the Cygwin 32 and 64 bit version of sed to 4.2.2-2. Since this 'sed' change, I noticed that "$" does not match a dos formatted file end-of-line anymore. example: echo "endofline^M" | sed "s/e$/X/" sed 4.2.1 returns endoflinX sed 4.2.2 returns endofline I don’t know if this is better or worse, or expected or not, but it is easy enough to fix my broken scripts. Scripts will be less portable between windows and linux now unless I take this into consideration. (and replace "$" with "^M*$") $ echo $LC_COLLATE $ echo $LANG en_US.UTF-8 -- Paul