X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: mwoehlke Subject: Re: bash-3.1-7 BUG Date: Wed, 13 Sep 2006 15:36:51 -0500 Lines: 17 Message-ID: References: <091320060438 DOT 11140 DOT 45078B490008FD8600002B8422007610640A050E040D0C079D0A AT comcast DOT net> <20060913052510 DOT GB1256 AT trixie DOT casa DOT cgf DOT cx> 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: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 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/