Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Deephanphongs <deephan@telocity.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] specify arguments to debugee from commandline (second try)
Date: Thu, 12 Apr 2001 14:13:00 -0000	[thread overview]
Message-ID: <20010412172201.A4110@llamedos.org> (raw)
In-Reply-To: <87g0feyvt5.fsf@creche.redhat.com>

Thus spake Tom Tromey (tromey@redhat.com):

> David> I'm still not convinced that it's appropriate for /gdb/ to do
> David> the escaping - if it's being put into a script, it's much
> David> easier to do it in perl than C..
> 
<snip>

> 
> Requiring the caller to do the quoting means that scripts will never
> invoke gdb directly.  Instead I'll have to write another program to
> wrap gdb and quote the command line for me.
> 

I suppose that depends on what you are using to automate GDB...

Frankly, if you are going to automate it, you might as well use a command
file - it's just as easy.


> That seems needless, especially given that requiring interactive users
> to quote the command line will suck.
> 
> For instance, you can't type
> 
>     gdb foo -- ' a b c '
> 
> Instead you must type
> 
>     gdb foo -- '\ a\ b\ c\ '
> 
> I can't really call this intuitive or friendly.

I can understand that.. I generally don't like programs doing things
like that automatically for me, though... I always run into cases where
the program misinterprets what I want it to do.

Actually, though, unless you needed to preserve the correct # of spaces,
you could just escape the apostrophes.


<snip>
> 
> David> What characters need to be escaped, anyway?  It seems like it
> David> much differ from shell to shell.
> 
> On Unix it doesn't really differ very much.  For most common shells
> you can simply quote all the weird characters with `\'.
> 
> Tom

Wierd characters being what, precisely?  I'm tempted to just escape
everything that's not a letter or number..


Dave
-- 
"Why's it called Ming?" said the Archchancellor, on cue.
The Bursar tapped the pot. It went *ming*.
        -- Discworld archeology revealed
           (Terry Pratchett, Moving Pictures)


  reply	other threads:[~2001-04-12 14:13 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010330005457.A21793@llamedos.org>
2001-03-29 23:13 ` [PATCH] specify arguments to debugee from commandline Eli Zaretskii
2001-03-30  0:26   ` David Deephanphongs
2001-03-30  1:32     ` Eli Zaretskii
2001-03-30  3:00     ` Alexandre Oliva
2001-03-30  3:47       ` Pierre Muller
2001-03-30  8:01         ` David Deephanphongs
2001-03-30 12:37           ` Andrew Cagney
2001-03-30  5:06     ` Fernando Nasser
2001-03-30  5:20 ` Fernando Nasser
2001-03-30 13:28 ` [PATCH] specify arguments to debugee from commandline (second try) David Deephanphongs
2001-04-02 22:27   ` David Deephanphongs
2001-04-02 22:48     ` Alexandre Oliva
2001-04-05 21:27       ` Tom Tromey
2001-04-05 21:47         ` Alexandre Oliva
2001-04-05 21:21     ` Tom Tromey
2001-04-06  1:32       ` Eli Zaretskii
     [not found]         ` <87vgoi58lr.fsf@creche.redhat.com>
2001-04-06  9:26           ` Eli Zaretskii
2001-04-06  9:35             ` Pierre Muller
2001-04-06 11:00               ` Tom Tromey
2001-04-17 10:38                 ` Andrew Cagney
2001-04-20  2:39                   ` David Deephanphongs
2001-06-06 23:40                     ` David Deephanphongs
2001-06-07  0:00                       ` Eli Zaretskii
2001-04-06 11:03             ` Tom Tromey
2001-04-06 13:13               ` Eli Zaretskii
2001-04-10 22:27                 ` David Deephanphongs
2001-04-11  1:55                   ` Eli Zaretskii
2001-04-11 19:05                     ` David Deephanphongs
2001-04-12  8:26                       ` Tom Tromey
2001-04-12 14:13                         ` David Deephanphongs [this message]
2001-04-12 17:21                           ` Tom Tromey
2001-04-13  1:30                             ` Todd Whitesel
2001-04-06 22:46       ` David Deephanphongs
2001-04-05 21:12   ` Tom Tromey
2001-04-06  1:36     ` Eli Zaretskii
2001-06-22 12:26 Deephanphongs, David

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=20010412172201.A4110@llamedos.org \
    --to=deephan@telocity.com \
    --cc=gdb-patches@sources.redhat.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