www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/25/12:04:29

Date: Sun, 25 Oct 1998 19:48:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Recursive make: portable technique?
In-Reply-To: <199810231510.RAA20775@acp3bf.physik.rwth-aachen.de>
Message-ID: <Pine.SUN.3.91.981025194815.24396O-100000@is>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019