*BSD News Article 89326


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!spool.mu.edu!howland.erols.net!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!not-for-mail
From: wosch@cs.tu-berlin.de (Wolfram Schneider)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: make error -- cd: not found
Date: 12 Feb 1997 10:53:21 GMT
Organization: Hohenschoensiehstenich
Lines: 20
Message-ID: <5ds7f3$5s0$2@news.cs.tu-berlin.de>
References: <5dovam$ije@uuneo.neosoft.com>
NNTP-Posting-Host: 130.149.17.98
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
In-reply-to: conrads@neosoft.com's message of 11 Feb 1997 05:16:06 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35548

In article <5dovam$ije@uuneo.neosoft.com> conrads@neosoft.com (Conrad Sabatier) writes:

>This is a strange one!  Doing a "make install" on leafnode-1.0 (I'm in the
>process of porting it; the build itself went fine):
>
>	cd $(SPOOLDIR)/message.id	<-- this directory already created
>
>Make returns the error "cd: not found".

This is an optimisation misfeature of make(1).  Make(1) attempts to
execute directly cd(1) - without using /bin/sh - and did not find
cd. cd(1) is not a command, it is a shell builtin and work only as a
shell builtin.

Try:
	cd $(SPOOLDIR)/message.id;
                             ^
The semicolon force make to use /bin/sh

Wolfram