Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: gdb@sourceware.org
Subject: Re: Quoting, backslashes, CLI and MI
Date: Thu, 23 Feb 2006 04:32:00 -0000	[thread overview]
Message-ID: <uacciln06.fsf@gnu.org> (raw)
In-Reply-To: <20060222193410.GB30642@nevyn.them.org> (message from Daniel 	Jacobowitz on Wed, 22 Feb 2006 14:34:10 -0500)

> Date: Wed, 22 Feb 2006 14:34:10 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb@sourceware.org
> 
> > I agree.  But that means MI commands that delegate to CLI will have to
> > process the arguments to modify the quoting, right?
> 
> Right - or stop delegating to the CLI, which is what I think I would
> do.

If that's not hard to do, then it's probably for the better to stop
delegating.

> > However, I Think we need 2 different styles of quoting: one for file
> > names, the other for strings.  Otherwise, supporting the Windows
> > backslashes will be hard.  Also, there are messy cases such as this:
> > 
> >     (gdb) break "foo bar.c":'MyClass::MyMethod'
> > 
> > (I'm not even sure I quoted it correctly ;-).  Can we really use the
> > same quoting rules for both the file-name and class/method name in
> > such situations?
> 
> Well, are you talking about the CLI here, or about the MI?

I thought I was talking about both, but maybe we need to think about
it some more.  Your description seemed to hint that 2 different
quoting styles already existed at least for the CLI case.  And it
seemed to me that trying to unify them would be a lot of unneeded
work, especially since I'm not at all sure they can be unified in a
useful way.

> Supporting Windows backslashes isn't hard - but we would have to
> document that they must be doubled (A) on the CLI, and (B) within
> double-quoted MI arguments.

If this would be acceptable to users, I don't mind.


      reply	other threads:[~2006-02-23  4:25 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
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 [this message]

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=uacciln06.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    /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