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 Date: Fri, 8 Jul 2005 23:19:00 +0200 (MET DST) From: Angelo Graziosi To: cygwin AT cygwin DOT com Subject: Re: Problems with ash-20040127-3 (Attn: bash maintainer) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.2, Antispam-Data: 2005.7.8.26 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' On Thu, 7 Jul 2005, Igor Pechtchanski wrote: > On Fri, 8 Jul 2005, Angelo Graziosi wrote: > > > Last morning I have made a build of ROOT (a CERN application) using the > > snapshot 20050705, bash-3.0-3-test, ash-20040127-1, coreutils-5.3.0-6 > > GCC-3.3.3-3. The buid takes almost 1.5 h > > > > After upgrading to bash-3.0-7, ash-20040127-3, coreutils-5.3.0-7 I have > > tried a new build. This time the buid stopped after a few minutes with: > > > > wingcc_ld.sh: unespected end of file... at line 12 and 31 > > > > Perhaps should one to change someting in this *.sh file (see Attc.) ? > > > > /bin/sh in /bin/ash ? or in /bin/bash ? > > Yep. The new /bin/sh is bash. Apparently, bash doesn't like the > following line: > > if [ "`echo $dllname | sed 's{^lib/.*\.dll${{'`" != "$dllname" ]; then > > because in bash, ${ has special meaning -- it starts a variable reference. > FWIW, I get the same error with "bash -n wingcc_ld.sh" when bash is > version 2.05b. I suspect this may actually be a bug in bash, since single > quotes ought to stop it from trying to expand variable references. This > only happens when the single quotes are inside a shell substitution (i.e., > "echo '${'" works, but "echo `echo '${'`" doesn't). Nevertheless, > changing the '{' to any other character (e.g., '#') in the sed script > makes it parse correctly. > Igor > Downgrading a package at time, I have seen that reinstalling ash-20040127-1 (and using Bash-3.0-7, coreutils-5.3.0-7) all works fine. All works fine also if one uses the new versions of those pkgs. and changes '/bin/sh' in '/bin/ash' in 'wingcc_ld.sh' (/bin/bash does not help) Tanks angelo. -- 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/