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:references :in-reply-to:content-type:mime-version :content-transfer-encoding; q=dns; s=default; b=FXH5azTTDfZKskVO 5XXEw5SpIVPFAsFdStdUbPgIBaV2UoEswxsH4dyjTRKIuJnecq5LOBIeYdyA/BQs N2z+lhFkUqLExzW1usC9yXRve6TrnzQ2mDeqTXpaz3IaV8rY3FqEHfqsdqW6gkgo haTRYHJOcbxfj0psnzYoon+jDGM= 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:references :in-reply-to:content-type:mime-version :content-transfer-encoding; s=default; bh=K0Ez8HorDfbUNLHmJTpw7J Fx/sM=; b=jY1I8pXZNqy2G364TDn5a4CJZsOZgbu9GZHOwnfVss0u4+CJ7SsnGJ 6Nmbb6emEFtkiLxdhL+UzPRHEYgQg0YwKigggACuQKbshWbFGk7PrKsG3z14OTH+ ukPmHsgrZsiOyhHMeWGjAtL/H8wcCeblLVcQFfo8DyOzM4RuA8FVY= 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.6 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=elegant, dan, H*i:5ms, Dan X-HELO: mga03.intel.com X-ExtLoop1: 1 From: "Soegtrop, Michael" To: Dan Kegel , "cygwin AT cygwin DOT com" Subject: RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts Date: Fri, 9 Jun 2017 16:09:27 +0000 Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A175B2705A7@IRSMSX102.ger.corp.intel.com> References: <0F7D3B1B3C4B894D824F5B822E3E5A175B2636E4 AT IRSMSX103 DOT ger DOT corp DOT intel DOT com> <0F7D3B1B3C4B894D824F5B822E3E5A175B26CE47 AT IRSMSX102 DOT ger DOT corp DOT intel DOT com> <65acc4a5-6e8e-2f72-4933-263572dc2631 AT SystematicSw DOT ab DOT ca> <0F7D3B1B3C4B894D824F5B822E3E5A175B270532 AT IRSMSX102 DOT ger DOT corp DOT intel DOT com> <1152474207 DOT 20170609183138 AT yandex DOT ru> In-Reply-To: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v59G9ucU007743 Dear Dan, > One could try making a wrapper shell script where sed usually lives that adds > those options and calls the real sed... I tried to do exactly this, but I tried to pipe a dos2unix command in between. It got a bit complicated because I had to parse the sed command line arguments. The solution of adding an extra command with -e is much more elegant. And you are right, replacing sed with a shell script is better than using an alias. But the -e method won't work for grep and for awk not in all cases. Best regards, Michael Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928 -- 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