Mail Archives: djgpp/2000/01/20/09:41:26
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 -