Date: Sun, 25 Oct 1998 19:48:33 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Hans-Bernhard Broeker cc: djgpp AT delorie DOT com Subject: Re: Recursive make: portable technique? In-Reply-To: <199810231510.RAA20775@acp3bf.physik.rwth-aachen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Fri, 23 Oct 1998, Hans-Bernhard Broeker wrote: > > cd ../new_dir; $(MAKE) > > Of course it will. How on earth do you expect DOS's 'cd' command to > understand *forward* slashes? DJGPP ports of Make v3.75 and later almost never call COMMAND.COM (precisely because it is so dumb). Instead, they call `system' from the library which emulates all COMMAND.COM functionality, inluding redirection and the CD command. A (well-intended) side-effect is that forward slashes and multiple commands on the same line are supported, even with stock DOS shells. The only case when COMMAND.COM is called is to run a batch file or an inteernal command other than those which are emulated.