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 21:41:10 -0500
> From: Daniel Jacobowitz <drow@false.org>
> 
> > 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?
> 
> This way you can't write documentation for GDB that says how the
> arguments to "run" behave - you have to reference another program,
> and we're not even sure which program it is half the time.

I don't think it's such a grave problem.  Saying it behaves "like your
shell" should be good enough.  Many programs have commands that invoke
an inferior shell, and they all bump into this issue.  We just happen
to have 2 such commands instead of one.

> I'd rather be able to have a chapter in the manual saying "this is how
> you use globbing, if you want to", and "this is how you escape
> arguments", and "this is how you redirect stderr to a file, if your
> platform supports that".

That'd be okay, too, but it will require to write a shell-compatible
command-line parser.


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