Snapshot 20040225: make hangs/errors out

Igor Pechtchanski pechtcha@cs.nyu.edu
Wed Mar 3 00:04:00 GMT 2004


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/



More information about the Cygwin mailing list