X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: bash-3.1-7$B!!(BBUG
Date:  Wed, 13 Sep 2006 15:36:51 -0500
Lines: 17
Message-ID: <ee9q53$74g$1@sea.gmane.org>
References:  <091320060438.11140.45078B490008FD8600002B8422007610640A050E040D0C079D0A@comcast.net> <20060913052510.GB1256@trixie.casa.cgf.cx> <loom.20060913T160909-692@post.gmane.org> <ee9oa9$sj$1@sea.gmane.org>
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.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.0
In-Reply-To: <ee9oa9$sj$1@sea.gmane.org>
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

Shankar Unni wrote:
> Eric Blake wrote:
>> But I intend that on binary files, \r\n line endings will treat the \r 
>> as part of the line, so at least binary mounts won't suffer from the 
>> speed impact of treating a file as unseekable the way bash 3.1-6 does.
> 
> Would it be possible to do this dynamically (instead of keying off of 
> mounts, etc.): if the first line of the file read by bash has a \r\n, 
> use text-mode (1-char-at-a-time) semantics, else use binary semantics 
> (lseek)?

I hate to say this, but... if bash goes this route, could it be a shopt? 
I would rather know that my scripts are broken (DOS-format).

-- 
Matthew
62% of all statistics are made up on the spot.


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

