This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Specifying command line arguments in a file?



> If the arguments in the file are whitespace-delimited, what do you
> do about arguments containing whitespace?

DJGPP supports single and double quotes, and backslashes to quote the
quotes.  We could put backslashes in to quote spaces too, but djgpp
doesn't (because backslashes are valid filename characters too).
DJGPP also expands wildcards inside response files, but it has a full
wildcard expander right there anyway (it's all part of building
argv[0] from a MS-DOS command line).  It even supports `find -print0' ;-)

You can check out src/libc/crt0/c1args.c from djgpp's CVS
(http://www.delorie.com/djgpp/cvs.html) and see for yourself.

It can all be put in libiberty's function if we decide to go that
route.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]