delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/27/17:25:21

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT 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 AT mail DOT gmail DOT com> <011b01c6e26f$3abdead0$a501a8c0 AT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
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 AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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/

- Raw text -


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