This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

csh and/or GNU make bug


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFERD+TmWA2y7s1YXMRAkJnAKCBtDGTDT1Y0eSP9R2ANaMp8EB8nwCghw3h
v6Vl9Kd2kuxvDZtKuuqZhSs=
=Q3YM
-----END PGP SIGNATURE-----


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]