delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/26/18:00:44

X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0610261500n1ad5b887y29d3de6c5481efc8@mail.gmail.com>
Date: Thu, 26 Oct 2006 18:00:27 -0400
From: "Lev Bishop" <lev DOT bishop AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: igncr vs text mode mounts, performance vs compatibility
In-Reply-To: <ehqkr7$dee$1@sea.gmane.org>
MIME-Version: 1.0
References: <1160655422743 DOT antti DOT nospam DOT 1605718 DOT wGO_WJ9D1NlId3tB-z6Qig AT luukku DOT com> <452F8719 DOT 9060300 AT cygwin DOT com> <4536BC88 DOT 3030003 AT qualcomm DOT com> <4536C922 DOT 4090807 AT qualcomm DOT com> <45376CBF DOT 1030104 AT byu DOT net> <loom DOT 20061024T205240-509 AT post DOT gmane DOT org> <453EA9C1 DOT 8060402 AT byu DOT net> <loom DOT 20061025T210057-749 AT post DOT gmane DOT org> <45401C68 DOT 7080706 AT byu DOT net> <ehqkr7$dee$1 AT sea DOT gmane DOT org>
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

One additional thing I'd like to say, if people are considering
possibly making a decision based off the line ending of the first line
of the file: it's worth bearing in mind that it's quite possible for a
file to end up with mixed line endings. Most editors are at least
smart enough to convert the whole file to their preffered format, but
not all, and there's always the possibility of nastiness like:
C:\TEMP> echo "extra line" >> file_with_unix_line_endings

It's yet another special case to think of:
"Why my scrpt not wrok?"
"Because it is on a binary mount && you didn't set igncr && you have
CRLF line endings on some lines && the first line doesn't have a CRLF"

It'll be one of those things that works 99% of the time for 99% of
people, and by the time it bites someone they'll have forgotton all
about this issue and will be very confused.

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