Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!uwmacc!uwspan!circle!galvin From: galvin@circle.UUCP (John Galvin) Newsgroups: comp.sys.ibm.pc Subject: Re: NDMAKE 4.3 Bug? Message-ID: <41.2179A191@circle.UUCP> Date: Mon, 19-Oct-87 01:19:00 EDT Article-I.D.: circle.41.2179A191 Posted: Mon Oct 19 01:19:00 1987 Date-Received: Tue, 20-Oct-87 01:54:41 EDT Organization: FidoNet node 121/1 - 1st Circle, Madison WI Lines: 35 In message <15000037@silver> Steve Creps writes: > With the version 4.3 of ndmake posted recently I believe there > is a bug. I was trying to make the pccurses library, which included > a couple of cd commands, but it didn't seem to be changing directories. > Then I added a cd with no argument ( to print the current directory) > after the "cd smodel" command. Sure enough, it showed that the current > directory had not changed. Here is a mini-transcript of what happened: > (starting in c:\tmp), "make small" > mkdir smodel (this works, the directory is created) > copy ___ smodel (works, files are copied) > cd smodel > cd (I added this to see what happened; printed "c:\tmp", > not "c:\tmp\smodel") > Now, what happened? I seriously doubt it's a problem with the pccurses, > because how can you screw up a "cd" command? Or is it some subtle > thing that I missed In the Unix Programmer's Manual (yes, it's RTFM time again, DK is too good of a programmer to mess this one up) it notes under Make(1): "Commands that are directly executed by the shell, notably *cd(1)*, are ineffectual across newlines in *make*." In other words, try this on the "cd smodel" line in your makefile: cd smodel; cd you should get "c:\tmp\smodel" back. --John -- John Galvin UUCP: ...uwvax!geowhiz!uwspan!circle!galvin 1810 Fordem Ave. #6 FidoNet: Sysop of 121/0, and 121/1. (608) 249-0275 Madison, Wi 53704 AT&T: (608) 249-0150