* gud.el parses args incorrectly
@ 2007-08-01 18:11 Yuri Shtil
2007-08-02 6:27 ` Nick Roberts
0 siblings, 1 reply; 2+ messages in thread
From: Yuri Shtil @ 2007-08-01 18:11 UTC (permalink / raw)
To: gnu-emacs-bug
It is impossible to pass quoted arguments to the gud.
For example if I say on the command line:
perl -d foo.pl one "two and three",
the ARGV in perl has two elements:
index 0 - one
index 1 - two and three
However if I invoke perldb with the same command, I get:
index 0 - one
index 1 - "two
index 2 - and
index 3 three"
The problem, I believe is that gud-common-init in gud.el uses
split-string which uses white spaces as delimiters and does not splits
the command line in shell-like way as I would expect.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gud.el parses args incorrectly
2007-08-01 18:11 gud.el parses args incorrectly Yuri Shtil
@ 2007-08-02 6:27 ` Nick Roberts
0 siblings, 0 replies; 2+ messages in thread
From: Nick Roberts @ 2007-08-02 6:27 UTC (permalink / raw)
To: Yuri Shtil; +Cc: gnu-emacs-bug
> It is impossible to pass quoted arguments to the gud.
> For example if I say on the command line:
>
> perl -d foo.pl one "two and three",
> the ARGV in perl has two elements:
> index 0 - one
> index 1 - two and three
>
> However if I invoke perldb with the same command, I get:
>
> index 0 - one
> index 1 - "two
> index 2 - and
> index 3 three"
>
> The problem, I believe is that gud-common-init in gud.el uses
> split-string which uses white spaces as delimiters and does not splits
> the command line in shell-like way as I would expect.
In the CVS repository (trunk and the Emacs 22 release branch EMACS_22_BASE)
gud-common-init no longer uses split-string and this should work.
If you can't check check out a CVS version of Emacs, then you'll need to
wait for Emacs 22.2 which was due to be released about now, although it
will probably be much later.
Alternatively you can patch Emacs 22.1 with:
http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-06/msg00261.html
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-02 6:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-01 18:11 gud.el parses args incorrectly Yuri Shtil
2007-08-02 6:27 ` Nick Roberts
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.