X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.7 required=5.0	tests=AWL,BAYES_40,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Wed, 15 Feb 2012 01:13:02 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <1319883781.20120215011302@mtu-net.ru>
To: Earnie Boyd <earnie@users.sourceforge.net>, cygwin@cygwin.com
Subject: Re: sed strips CRs
In-Reply-To: <CA+sc5m=Y_eCqV_VzVj_WecAAOM7UPTWTX-BjoyQSMB+zb0VVFA@mail.gmail.com>
References: <CA+sc5m=C2=49c6grcLbwYz6rQNWux43m_oY9hvQGaGrh_guk_Q@mail.gmail.com> <2BF01EB27B56CC478AD6E5A0A28931F203F5655A@A1DAL1SWPES19MB.ams.acs-inc.net> <905541703.20120214045615@mtu-net.ru> <CA+sc5m=Y_eCqV_VzVj_WecAAOM7UPTWTX-BjoyQSMB+zb0VVFA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Greetings, Earnie Boyd!

>>> The standard response to issues dealing with CRLF files is to point the
>>> user to dos2unix and text mode mounts. This should be adequate without
>>> the hidden behavior of sed/grep/awk and probably others.
>>
>> While your reasoning is sound, I prefer them to behave the way they are for my
>> own goals.
>> I can't possible alter between text and binary mounts, or use d2u on and off
>> in an attempt to produce consistent and predictable end results.

> Consistent behavior is what I see as the issue.  IMO, sed, grep and
> awk should behave the same as on UNIX for consistent and predictable
> behavior.  Treating CR as white space not only helps the Windows user
> it also helps the Unix user when Windows files are transferred to it.
> I know that for sed at least treating CR as white space works very
> well.

Most apparent: it breaking EOL matches.


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 15.02.2012, <01:12>

Sorry for my terrible english...


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

