delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/20/09:41:26

Date: Thu, 20 Jan 2000 15:57:36 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Waldemar Schultz <schultz AT ma DOT tum DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Create response files
In-Reply-To: <3886D9A7.266D2D6F@ma.tum.de>
Message-ID: <Pine.SUN.3.91.1000120154850.24629D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 20 Jan 2000, Waldemar Schultz wrote:

> > cool!
> > Is ther a list of other such useful commands like taht?
> 
> sorry, disregard the question please. of course it's in info *Utilities.

Yes, it's in "info utils".  But, as a hint, based on much grey hair I got 
looking for these tricks, the other useful command is `redir'.  And I 
don't mean just as a standard stream redirector; I mean as a general 
launcher of programs.  For example, you could use it to safely run a 
program whose pathname is given with Unix-style forward slashes 
(typically, in a Makefile), even if you need to call COMMAND.COM.  Here's 
an example:

  foo/bar:
	if exist foo\bar.o $(MAKE) -C foo

This will not work, because $(MAKE) expands into something like 
"c:/djgpp/bin/make.exe", and COMMAND.COM would choke on it.  But
the following *will* work:

  foo/bar:
	if exist foo\bar.o redir $(MAKE) -C foo bar

- Raw text -


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