This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

Re: RFC: Inferior command line arguments


>>>>> "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


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