From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27685 invoked from network); 28 Jan 2002 13:56:11 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Jan 2002 13:56:11 -0000 Received: (qmail 18279 invoked by alias); 28 Jan 2002 13:55:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4633 Received: (qmail 18267 invoked from network); 28 Jan 2002 13:55:56 -0000 To: zsh-users@sunsite.dk Subject: Re: sh: reuse/src doesn not exist.. In-reply-to: "Andrew Markebo"'s message of "28 Jan 2002 14:42:20 +0100." Date: Mon, 28 Jan 2002 13:55:23 +0000 Message-ID: <6109.1012226123@csr.com> From: Peter Stephenson Andrew Markebo wrote: > > Hello! > > I am having problems with a makefile, I have zsh 4.something as shell, > and when firing up the target: > > m_reuselib: > sh -c "if test -d reuse/src; \ > then echo; echo Making public Modula reuse library; \ > cd reuse/src && $(MAKE) $(MFLAGS); else true; fi" > > from a makefile, I get the errors: > > src> make >... > Making public Modula reuse library > sh: reuse/src: does not exist > *** Error code 1 Are you sure `sh' is zsh? That's not a zsh error message, and a system error message via perror() is usually more specific --- `no such file or directory' is standard. But it may just be your system is weird. Have you got `.' in your CDPATH? If not, and that's exported (or otherwise accessible to the makefile), some shells won't cd into immediate subdirectories. You should easily be able to test this by turning the cd into `cd ./reuse/src'. However, if you've really got zsh as sh, this won't be the problem, since zsh always searches `.' first. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************