This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: RFA: Support Windows extended error numbers in safe_strerror


> Date: Sun, 5 Feb 2006 16:56:59 -0500
> From: Daniel Jacobowitz <drow@false.org>
> 
> > Isn't the shell used to allow redirection and shell-like quoting from
> > the gdb command-line?  Lack of redirection, at least, is an occasional
> > complaint about gdb-under-cygwin.
> 
> That's right; and we certainly can't ditch that support.  But what we
> do today is pass the command line arguments directly to a shell, which
> means all sorts of worrying about quoting, and also means that we get
> Bourne shell behavior if the user has an appropriate $SHELL, or C shell
> if they're using csh/tcsh, et cetera.  I don't know if anyone takes
> advantage of that as a feature, but it's sure confusing!

I don't see why this is confusing at all.  The point is that the user
should type the command arguments as if she were typing at the shell's
prompt, and feel exactly the same.  So I don't see why we need to
worry about quoting--just passing the args verbatim to the shell
should do the trick.  Or am I missing something?


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