Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sh: reuse/src doesn not exist..
- X-seq: zsh-users 4633
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: sh: reuse/src doesn not exist..
- Date: Mon, 28 Jan 2002 13:55:23 +0000
- In-reply-to: "Andrew Markebo"'s message of "28 Jan 2002 14:42:20 +0100." <m3elkasibn.fsf@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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 <pws@xxxxxxx> 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.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author