X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: Bash 3.1.17(8) CR/LF problem
Date:  Wed, 27 Sep 2006 16:19:57 -0500
Lines: 27
Message-ID: <efeptt$ceu$3@sea.gmane.org>
References:  <860934040609271241ib9c7486q60b651ac9b3d6c36@mail.gmail.com> <011b01c6e26f$3abdead0$a501a8c0@CAM.ARTIMI.COM>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
In-Reply-To: <011b01c6e26f$3abdead0$a501a8c0@CAM.ARTIMI.COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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

Dave Korn wrote:
> On 27 September 2006 20:42, Malcolm Nixon wrote:
>> In my opinion a better solution would have been to err on the side of
>> compatibility and only use the new fast readline code if manually
>> enabled.
> 
>   Then according to your opinion, everyone else in the world has to suffer
> from crippled bash performance because you can't be bothered to fix your
> systems.  Better for /you/ maybe, but it's not always all about you.  In MY
> opinion, a better solution would be to err on the side of efficency, and only
> use the old slow readline code if manually enabled.

Right; non-standard behavior (and any non-binary treatment of '\r' 
certainly counts!) should - and I might dare even to say "must" - be 
disabled by default. Although in this case I can't think of any reason 
why you would ever have a '\r' in a shell script (other than as part of 
a line ending). Although if we make any of this optional, then IMO it 
needs to be done the right way, which is to just ignore '\r', at least 
at the end of lines. That way we can ALWAYS read in binary mode, and it 
isn't a major performance penalty.

I suppose this would mean if it is turned on, scripts on textmode mounts 
will actually be faster because we can ignore the textmode.

-- 
Matthew
The hippo made me do it! What? What do you mean you can't see the hippo?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

