delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/26/11:46:46

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mwoehlke AT tibco DOT com>
Subject: Re: igncr vs text mode mounts, performance vs compatibility
Date: Thu, 26 Oct 2006 10:39:18 -0500
Lines: 19
Message-ID: <ehqkr7$dee$1@sea.gmane.org>
References: <1160655422743 DOT antti DOT nospam DOT 1605718 DOT wGO_WJ9D1NlId3tB-z6Qig AT luukku DOT com> <20061012123406 DOT GA30908 AT trixie DOT casa DOT cgf DOT cx> <452EA386 DOT 9010201 AT qualcomm DOT com> <20061012212011 DOT GA8535 AT trixie DOT casa DOT cgf DOT cx> <452EFDDB DOT 1010301 AT qualcomm 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>
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: <45401C68.7080706@byu.net>
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

Eric Blake wrote:
> There is also the possibility of making bash turn igncr on by default, but
> /bin/sh leaving it off, since only /bin/sh is specified by POSIX; but that
> also gives me the willies thinking about people who will complain why
> their script doesn't work when they change from #!/bin/bash to #!/bin/sh.

With all due respect, /bin/sh is meant to be POSIX-conforming, and IMO 
should force igncr to be off. IOW such people deserve what they get. :-)

The other side of this argument is 'why did you switch to #!/bin/sh?'. 
Chance are it was done to make a script "more portable", and as we of 
course know '\r' line endings are *not* portable.

Not that I'm trying to convince you of anything, just trying to help you 
feel better if you decide to make this decision. :-)

-- 
Matthew
$ kill bill - kill: can't find process "bill"


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