bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gud.el parses args incorrectly


From: Nick Roberts
Subject: Re: gud.el parses args incorrectly
Date: Thu, 2 Aug 2007 18:27:38 +1200

 > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]