X-Spam-Check-By: sourceware.org Message-ID: <2fc802c00610040913h79ae8797m2580e49ef1987723@mail.gmail.com> Date: Wed, 4 Oct 2006 17:13:33 +0100 From: "David Picton" To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: bash-3.1-9 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > From: Eric Blake > To: cygwin at cygwin dot com > Date: Mon, 02 Oct 2006 21:51:04 -0600 > Subject: [ANNOUNCEMENT] Updated: bash-3.1-9 > Reply-to: cygwin at cygwin dot com > Reply-to: The Cygwin Mailing List > > -------------------------------------------------------------------------------- > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > A new release of bash, 3.1-9, is now available, replacing 3.1-8 as the > current version. 3.1-6 remains as the previous version. > NEWS: > ===== > Due to complaints on the mailing list, this version attempts to alleviate > some of the pain of people who have difficulties working around \r\n line > endings in scripts residing on binary mounts. [snip] > Second, this release adds a new shopt, igncr, which dynamically > tells bash to ignore all \r in the input file when it is set; however, it > defaults to unset. With this shopt, it is possible to make a bash script > work on binary mounts even if it has \r\n line endings, by adding the > following line as the first non-comment: > shopt -s igncr;# [snip] > If you want your script to be > portable to other platforms or shells that don't understand igncr, you can >write it as: > (shopt -s igncr) 2>/dev/null && eval 'shopt -s igncr';# Alternatively, you can set the environment variable BASH_ENV to the name of a file containing startup commands for all bash scripts. If the above command is issued in the file, the shopt command will be set before the script is read - and DOS-format scripts will therefore execute correctly without modification. -- 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/