Updated: bash-3.1-8

Eric Blake ebb9@byu.net
Mon Sep 25 13:32:00 GMT 2006

Hash: SHA1

A new release of bash, 3.1-8, is now available, replacing 3.1-6 as the
current version.  The 3.0 series of bash is no longer available from the

This version was previously released as an experimental version, and the
list traffic has been minimal enough that it seemed safe to promote to
current.  The changes between this release and 3.1-6 are all related to
removing several outdated #ifdefs that were once necessary in bash for
older versions of cygwin, but which slowed down performance.  In
particular, bash is now faster and more like Linux when operating on
binary mounts; if your script uses \n line endings, bash will read a
buffer at a time instead of a byte a time, for much less disk traffic.  A
script on a binary mount that uses \r\n line endings will probably
encounter syntax errors or odd variable assignments, because the \r is
treated literally.  If this happens to you, use d2u to fix the line
endings, or change your script to live in a text mount point.  A script
that resides on a text mount can have either line ending (even
inconsistently mixed), but be aware that text mount points are slower, due
to \r\n filtering.

Remember, you must not have any bash or /bin/sh instances running when you
upgrade the bash package.  This release will work with cygwin-1.5.21-1 or

Bash is an sh-compatible shell that incorporates useful features from the
Korn shell (ksh) and C shell (csh).  It is intended to conform to the IEEE
POSIX P1003.2/ISO 9945.2 Shell and Tools standard.  It offers functional
improvements over sh for both programming and interactive use. In
addition, most sh scripts can be run by Bash without modification.

As of the bash 3.0 series, cygwin /bin/sh defaults to bash, not ash,
similar to Linux distributions.

To update your installation, click on the "Install Cygwin now" link on the
http://cygwin.com/ web page.  This downloads setup.exe to your system.
Save it and run setup, answer the questions and pick up 'bash' in the
'Base' category (it should already be selected).

Note that downloads from sources.redhat.com (aka cygwin.com) aren't
allowed due to bandwidth limitations.  This means that you will need to
find a mirror which has this update, please choose the one nearest to you:

If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

- --
Eric Blake
volunteer cygwin bash maintainer

To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send email
to the address specified there.  It will be in the format:


If you need more information on unsubscribing, start reading here:


Please read *all* of the information on unsubscribing that is available
starting at this URL.

Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Cygwin-announce mailing list