Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Dave Korn" <dk@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: zsh & make
Date: Tue, 27 Apr 2004 16:55:46 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <8939161.1083079644899.JavaMail.sargon@mac.com>
Message-ID: <NUTMEG5Vf6c3LBzsBIy00000049@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 27 Apr 2004 15:55:46.0578 (UTC) FILETIME=[1A801F20:01C42C70]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Daniel Clausen
> Sent: 27 April 2004 16:27

> When building my project with make under zsh and looking at its
> build-log afterwards, I noticed that the following error occured:
> 
> [begin error]
> gmake[5]: Entering directory 
> `/c/work/Projects/XYZ/categories/TrxTables/unittest'
> basename: too few arguments
> Try `basename --help' for more information.
> (last two lines repeated 8 times)
> [end error]
> 
> 
> We use 'basename' only in one place in the Makefiles and it looks
> like this:
> 
> COMPONENT_NAME = $(shell basename `pwd`)

> Any idea how to debug this further?

  For debugging it, you might be able to get something useful like this:

> COMPONENT_NAME = $(shell basename `pwd | tee i-was-here-.txt`)

  Which should at least tell you exactly how it's getting invoked.  Or you
could try

> COMPONENT_NAME = $(shell echo basename `pwd` > command-was-this.txt &&
basename `pwd`)

..or any number of similar variants.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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

