RFC: Inferior command line arguments
Tom Tromey
tromey@redhat.com
Fri Sep 28 07:50:00 GMT 2001
>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:
Eli> Oh, so in the comment above that confused me you meant ``...will
Eli> be parsed _by_the_shell_ to yield the same vector'', yes?
Yeah. I changed it to read:
/* Given a vector of command-line arguments, return a newly allocated
string which, when passed to the create_inferior function, will be
parsed (on Unix systems, by the shell) to yield the same vector.
Eli> AFAIK, CreateProcess acts like a stock Windows shell wrt the
Eli> command line handling.
I ended up implementing this for win32-nat.c:
/* We quote each argument by adding "..." around it. If the
argument contains a quote character, we quote that with a
backslash. */
I did this based on some readings I found via a google search. I
really know very little about Windows. Does this approach sound
reasonable?
Tom
More information about the Gdb-patches
mailing list