delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/30/08:20:12

X-Spam-Check-By: sourceware.org
Message-ID: <45BF45FE.2080406@byu.net>
Date: Tue, 30 Jan 2007 06:19:58 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, dan AT spicetrader DOT net
Subject: Re: trouble with bash / if in recent release / update ?
References: <loom DOT 20070129T181002-616 AT post DOT gmane DOT org> <loom DOT 20070130T081531-446 AT post DOT gmane DOT org>
In-Reply-To: <loom.20070130T081531-446@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Daniel Brockman on 1/30/2007 12:18 AM:
> A blank line in the script file produces err msg
>
> : command not found
>
> I can't figure out a way to make the new version of sh.exe work. Imho, it's
> broken.
...
> 
> I found this in the archive...
> 
> 4a. For a single affected script, add this line just after the she-bang:
>  (set -o igncr) 2>/dev/null && set -o igncr; # comment is needed

You were correct - it is not sh that is broken, it was your scripts.  And
have you considered point 2, that running d2u might be easier than using
igncr?

> 
> The value of the latest enhancement isn't immediately apparent to me.

READ THE ARCHIVES!  This topic has been talked to death in the past two
months.  The value is the fact that Cygwin on binary mount points is
_designed_ to emulate Linux, and on Linux, you will get the _same_ syntax
errors with raw carriage returns in your scripts; furthermore, this change
was made in response to a performance bug.  In my opinion, text mode files
are a hack for people unable to follow Linux semantics; either use text
mount points, or specifically ask bash to operate in text mode; either
way, it should help make it clear to yourself that you are moving away
from Linux behavior and getting slower performance as a result.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFv0X+84KuGfSFAYARAin/AKC1SWWAVSnX1u02Wj/T+ou7dBfJdwCeLHXZ
DsyolZ+YEoEe3zhGsat5ei4=
=DjnN
-----END PGP SIGNATURE-----

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