www.delorie.com/djgpp/v2faq/faq131.html | search |
| Previous | Next | Up | Top |
Q: I have a Makefile of Unix origin which contains some very long command lines. Will it work with DJGPP?
This method is suitable only for invoking DJGPP programs from other DJGPP programs. You don't have to do anything special to use this method, it is all done automagically for you by the library
functions like system
, spawnXX
and execXX
on the parent program side, and by the start-up code on the child side(Note: In case you wonder, the name
!proxy comes from the string which identifies the use of this method: instead of getting the actual command line, the program gets !proxy followed by the address of the
actual command line.).
system
library functions should be globbed by the
child, while the arguments passed by spawnXX
and execXX
family of functions should not; thus the former uses the environment method while the latter use the
!proxy method.
Note that this method makes @ special when it is the first (or the only) character of a command-line argument, which should be escape-protected if you want to use it verbatim (see how to pass the @ character).
Since the long command lines are a very important feature, DJGPP's version of the system
library function avoids calling the DOS command processor, COMMAND.COM, unless it
needs to run a batch file or an internal command of COMMAND.COM. Other features of the command processor, like redirection and pipes, are emulated internally by system
.
See the library reference for system
, for more details about its extended functionality.
webmaster donations bookstore | delorie software privacy |
Copyright ⌐ 1998 by Eli Zaretskii | Updated Sep 1998 |
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)