Subject: csh and/or GNU make bug
From: gustav <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Mon, 17 Apr 2006 21:15:35 -0400 (EDT)

There is a bug either in GNU make or in tcsh or in both---on
Cygwin. The combination of csh and GNU make will hang if SHELL is
declared as /bin/csh -f.  The -f option is often used to stop csh from
sourcing users' .cshrc on invocation.

   versions:
      make     3.80-1
      tcsh     6.14.00-5
      cygwin   1.5.19-4

Here is a brief demo:

gustav@YANCHEP:../tryme 21:14:36 !548 $ cat GNUmakefile
SHELL = /bin/csh -f

TODAY := $(shell date +%d%b%Y)

all: echo

echo:
        echo $(TODAY)

gustav@YANCHEP:../tryme 21:14:39 !549 $ make

... make hangs ...

^C
gustav@YANCHEP:../tryme 21:14:43 !550 $ ed GNUmakefile
86
/SHELL/
SHELL = /bin/csh -f
s/ -f//p
SHELL = /bin/csh
w
83
q
gustav@YANCHEP:../tryme 21:15:05 !551 $ make
echo 17Apr2006
17Apr2006
gustav@YANCHEP:../tryme 21:15:07 !552 $ 

Happy hacking,

==
 Zdzislaw (Gustav) Meglicki, Office of the Vice President for Information
 Technology, Indiana University, 601 E. Kirkwood Ave., Room 116, 
 Bloomington, IN 47405-1223, USA, http://beige.ucs.indiana.edu/gustav,
 ph: 812-856-5597 (o), 812-345-3284 (m), fax: 812-855-3310/812-856-3147

--
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/