trouble with bash / if in recent release / update ?

Eric Blake
Tue Jan 30 14:19:00 GMT 2007

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

> 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   
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list