From: Eli Zaretskii <eliz@gnu.org>
To: gdb@sourceware.org
Cc: jimb@red-bean.com
Subject: Re: Quoting, backslashes, CLI and MI
Date: Wed, 22 Feb 2006 19:50:00 -0000 [thread overview]
Message-ID: <ubqwzkx9w.fsf@gnu.org> (raw)
In-Reply-To: <20060222180137.GA27535@nevyn.them.org> (message from Daniel Jacobowitz on Wed, 22 Feb 2006 13:01:37 -0500)
> Date: Wed, 22 Feb 2006 13:01:37 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb@sourceware.org
>
> Actually, there's two different possibilities here, and I think I
> focused on the wrong one.
>
> 1. We want -exec-arguments to take MI-quoted individual arguments,
> which are then passed as argv elements to the program.
>
> 2. We want -exec-arguments to take a single MI-quoted argument,
> which is the value to set the argument string to, for the target
> and/or shell to handle however they deem appropriate.
I think we should take (2). We shouldn't second-guess or reinvent
shell features. There's a good chance that the string is actually
coming from a user who typed it, in which case it will be in the form
we type at the shell's prompt. So it should go to the shell for
interpretation.
> Then there's the question of what to do with CLI "set args". People
> use this today and it is passed literally to the program, without any
> interpretation of quotes or escapes - if you want that to happen you
> wait for the shell to do it. I don't think that we can really change
> that - we can bump the interface version on MI, but we can't really
> bump it on our CLI users' fingers :-)
>
> So CLI "set args" will need to continue being unescaped, one way or
> another.
Yes, and I Think this is The Right Thing to do, for the same reasons.
next prev parent reply other threads:[~2006-02-22 19:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 4:30 Daniel Jacobowitz
2006-02-22 4:35 ` Paul Koning
2006-02-22 19:57 ` Daniel Jacobowitz
2006-02-22 21:57 ` Paul Koning
2006-02-23 4:25 ` Mark Kettenis
2006-02-25 1:30 ` Eli Zaretskii
2006-02-22 4:40 ` Eli Zaretskii
2006-02-22 5:24 ` Daniel Jacobowitz
2006-02-22 19:30 ` Eli Zaretskii
2006-02-22 20:59 ` Daniel Jacobowitz
2006-02-22 17:39 ` Jim Blandy
2006-02-22 18:01 ` Daniel Jacobowitz
2006-02-22 18:05 ` Jim Blandy
2006-02-22 18:11 ` Daniel Jacobowitz
2006-02-22 19:24 ` Andrew STUBBS
2006-02-22 19:28 ` Daniel Jacobowitz
2006-02-22 19:50 ` Eli Zaretskii [this message]
2006-02-22 19:34 ` Eli Zaretskii
2006-02-22 19:53 ` Daniel Jacobowitz
2006-02-23 11:13 ` Eli Zaretskii
2006-02-22 19:25 ` Eli Zaretskii
2006-02-22 19:51 ` Daniel Jacobowitz
2006-02-23 4:32 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ubqwzkx9w.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=jimb@red-bean.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox