delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/02/18:56:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Snapshot 20040225: make hangs/errors out
In-Reply-To: <Pine.GSO.4.58.0403021741240.17643@thing1-200>
Message-ID: <Pine.GSO.4.56.0403021853100.17984@slinky.cs.nyu.edu>
References: <c1j55u$kah$1 AT sea DOT gmane DOT org> <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> <c205f3$jel$1 AT sea DOT gmane DOT org> <4044E025 DOT 2060501 AT scytek DOT de> <20040302204752 DOT GA11909 AT redhat DOT com> <Pine DOT GSO DOT 4 DOT 58 DOT 0403021741240 DOT 17643 AT thing1-200>
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019