delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/17/21:23:43

X-Spam-Check-By: sourceware.org
From: gustav <gustav AT indiana DOT edu>
To: cygwin AT cygwin DOT com
Cc: psmith AT gnu DOT org
Subject: csh and/or GNU make bug
Message-Id: <20060418011535.DE17216400E@perth.ovpit.indiana.edu>
Date: Mon, 17 Apr 2006 21:15:35 -0400 (EDT)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

-----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 AT YANCHEP:../tryme 21:14:36 !548 $ cat GNUmakefile
SHELL = /bin/csh -f

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

all: echo

echo:
        echo $(TODAY)

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

... make hangs ...

^C
gustav AT YANCHEP:../tryme 21:14:43 !550 $ ed GNUmakefile
86
/SHELL/
SHELL = /bin/csh -f
s/ -f//p
SHELL = /bin/csh
w
83
q
gustav AT YANCHEP:../tryme 21:15:05 !551 $ make
echo 17Apr2006
17Apr2006
gustav AT 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/

- Raw text -


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