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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 2 Mar 2004 18:56:04 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Snapshot 20040225: make hangs/errors out In-Reply-To: Message-ID: References: <403E07A4 DOT 1010309 AT scytek DOT de> <20040226150318 DOT GC23139 AT redhat DOT com> <403E1400 DOT 7010704 AT scytek DOT de> <20040226163404 DOT GA25941 AT redhat DOT com> <403E245F DOT 40101 AT scytek DOT de> <403E72B7 DOT 9050305 AT scytek DOT de> <403FD3AC DOT 7010300 AT scytek DOT de> <4044E025 DOT 2060501 AT scytek DOT de> <20040302204752 DOT GA11909 AT redhat DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-ID: X-Scanned-By: MIMEDefang 2.39 On Tue, 2 Mar 2004, Brian Ford wrote: > Ok, I haven't been following this thread, but I thought I'd try to help > debug. Somebody tell me if I found a clue, or I'm just being stupid. > > Under a current, debugging enabled, cvs compiled cygwin1.dll: > > $ uname -a > CYGWIN_NT-5.1 fordpc 1.5.8(0.111/4/2) 2004-03-02 12:22 i686 unknown > unknown Cygwin > > using the attached b.sh script and Makefile, I see the following output: > > [snip] > : End 30.pp 1 > : Begin 0.pp † 1+1‡ > [snip] > : End 30.pp † 1+1‡ > : Begin 0.pp † † 1+1‡+1‡ > [etc] > > hence, the env dump in the script. Is it just too late in the day for me, > or is there environment corruption at play here? > > This is very easy to reproduce, and it changes with minor changes to the > script. Brian, It must be late in the day -- $((a+b)) is bash syntax, not ash... You need to change your script to have '#!/bin/bash' or use `expr a + b`. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/