X-Spam-Check-By: sourceware.org Message-ID: <451D5451.9030608@ucsd.edu> Date: Fri, 29 Sep 2006 10:13:53 -0700 From: Larry Breyer User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 CC: cygwin AT cygwin DOT com Subject: Re: bash 3.1.18 seems seriously broken References: <451AEBAE DOT 6000703 AT cs DOT ucsd DOT edu> <451B1F43 DOT 1030400 AT byu DOT net> In-Reply-To: <451B1F43.1030400@byu.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylisting: NO DELAY (Trusted relay host); processed by UCSD_GL-v2.1 on mailbox7.ucsd.edu; Fri, 29 September 2006 10:13:59 -0700 (PDT) X-MailScanner: PASSED (v1.2.8 78315 k8THDwN2047146 mailbox7.ucsd.edu) 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 Eric Blake wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > According to Larry Breyer on 9/27/2006 3:22 PM: >> What changed from bash 3.1.17 to 3.1.18 ? > > I don't know, but let me know when you find out :) > (There is no 3.1.18 - the latest official bash is 3.1.17, at cygwin > release 8, but upstream is very unlikely to release 3.1.18 since 3.2 is in > beta now.) > I am a bit confused by these numbering schemes. When I look at the 'Select Packages' section of setup, my choices for bash are 3.1-6 or 3.1-8. I assumed they were shorthand for 3.1.16 and 3.1.18. >> >> I got syntax errors on blank lines. > > That means your script has CRLF line endings, but resides on a binary > mount point. I think I panicked slightly at discovering Cygwin bash had been regressed. I was thinking of all the supplied scripts so I ran a test of the ~450 shell scripts and found only a handful with CR embedded: /bin/card /bin/fixps /bin/flea /bin/makempx /bin/mktexlsr /bin/nfs-server-config /etc/postinstall/uw-imap-imapd.sh.don /etc/postinstall/xerces-c-devel.sh.done /etc/preremove/gv.sh /etc/preremove/uw-imap-imapd.sh /etc/preremove/X-start-menu-icons.sh.done /etc/preremove/xerces-c-devel.sh I found several of the scripts I wrote had embedded CRs. I'm an old Unix hand, so I am really baffled how they got into my scripts. Plus, I always found vim would display the CRs as ^M. To my dismay I now discover the vim silently ignores CR when its part of CR-LF pair, unlike LF-CR. So, I have subscribed to cygwin and cygwin-announce. I am hopeful I will not be surprised again. -- Larry Breyer -- 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/