Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: 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: 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/