*BSD News Article 88952


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.internetmci.com!uuneo.neosoft.com!news
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: make error -- cd: not found
Date: 13 Feb 1997 02:42:48 GMT
Organization: NeoSoft, Inc.
Lines: 38
Message-ID: <5dtv38$e3q@uuneo.neosoft.com>
References: <5dovam$ije@uuneo.neosoft.com>
    <5ds7f3$5s0$2@news.cs.tu-berlin.de>
Reply-To: conrads@neosoft.com
NNTP-Posting-Host: 206.27.167.109
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
To: wosch@cs.tu-berlin.de (Wolfram Schneider)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35351

[Posted and mailed]

In article <5ds7f3$5s0$2@news.cs.tu-berlin.de>,
	wosch@cs.tu-berlin.de (Wolfram Schneider) writes:
> 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

Ah!  Thanks for the tip.

Yes, in looking over a Makefile from another port, I discovered this, only
I changed the line to: 

	csh -c 'cd $(SPOOLDIR)/message.id'

Kind of overkill compared to your version.  :-)

Thanks.

-- 
Conrad Sabatier		http://www.neosoft.com/~conrads