From mi@ALDAN.star89.galstar.com  Thu Feb  1 11:01:23 1996
Received: from aldan (PPP-84-12.BU.EDU [128.197.8.128])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA18963
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 1 Feb 1996 11:01:15 -0800 (PST)
Received: (from mi@localhost) by aldan (8.6.12/8.6.12) id OAA04131; Thu, 1 Feb 1996 14:02:15 -0500
Message-Id: <199602011902.OAA04131@aldan>
Date: Thu, 1 Feb 1996 14:02:15 -0500
From: Mikhail Teterin <mi@ALDAN.star89.galstar.com>
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: make or cd?
X-Send-Pr-Version: 3.2

>Number:         986
>Category:       bin
>Synopsis:       problems make-ing with cd in the rule
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb  1 11:10:01 PST 1996
>Closed-Date:    Mon Nov 18 16:01:26 PST 1996
>Last-Modified:  Mon Nov 18 16:07:54 PST 1996
>Originator:     Mikhail Teterin
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:

	2.1 release, tcsh

>Description:

	Makefile (generated by xmkmf) has rule:
all::
        @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
        for i in $(SUBDIRS) ;\
        do \
        (cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \
        $(MAKE) $(MFLAGS)  all); \
        done

cd reportsi: can't cd to <Whatever> Make fails...

>How-To-Repeat:

	Never happened before... Don't know... Here is a script:

Script started on Thu Feb  1 13:45:59 1996
mi@aldan:~/knews (151) make Makefiles
making Makefiles in Widgets...
cd: can't cd to Widgets
making Makefiles in src...
cd: can't cd to src
making Makefiles in util...
cd: can't cd to util
mi@aldan:~/knews (152) cd Widgets
mi@aldan:~/knews/Widgets (153) ls
ArtText.c	KnappP.h	MenuP.h		ScrBar.h	TextFieldP.h
ArtText.h	Layout.c	Message.c	ScrBar.o	Toggle.c
	/ Few lines removed for shortness	-mi /
ArtText.o	Layout.h	Message.h	ScrBarP.h	Toggle.h
ArtTextP.h	Layout.o	Message.o	ScrList.c	Toggle.o
mi@aldan:~/knews/Widgets (154) exit
exit

Script done on Thu Feb  1 13:46:28 1996

>Fix:
	
	Putting full path instead of just $$i let me build, but
	`make Makefiles' still fails. Tried chdir instead of cd with
	no result...

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->steve 
Responsible-Changed-By: steve 
Responsible-Changed-When: Tue Oct 15 19:14:41 PDT 1996 
Responsible-Changed-Why:  
I am working on this one. 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Mon Nov 18 16:01:26 PST 1996 
State-Changed-Why:  
Originator chalked it up to a glitch since corrected.  I 
was also unable to reproduce this in -current (or what 
went into 2.1.6 or 2.2). 
>Unformatted:
