unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Space in compiler file name
@ 2006-02-20  7:55 Brian Elmegaard
  2006-02-20 21:00 ` Eli Zaretskii
       [not found] ` <mailman.961.1140469246.2856.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Brian Elmegaard @ 2006-02-20  7:55 UTC (permalink / raw)


Hi,

On windows I have a compiler installed under c:\Program
Files\dna\bin. This path is set to dna.bin-directory with customize
for the given mode.

When I run I get:
c:/program files/dna/bin/dna.exe 
'c:/program' is not recognized as an internal or external command,
operable program or batch file.

The compile command is set by:
  (setq compile-command 
		     (progn (concat dna-bin-directory "/" 
				    dna-executable-name " "
				    (file-name-nondirectory
				     buffer-file-name)))) 
  (setq dna-input-buffer-name (buffer-name))
  (compile compile-command)


How can I make dna-bin-directory contain spaces and pass this to
compile?

tia,
-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Space in compiler file name
@ 2006-02-21  5:30 Dave Humphries
  2006-02-21 19:52 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Dave Humphries @ 2006-02-21  5:30 UTC (permalink / raw)


Have you tried with back slashes (maybe even double back slashes) and
quotes? 

-----Original Message-----
From: help-gnu-emacs-bounces+dave.humphries=dytech.com.au@gnu.org
[mailto:help-gnu-emacs-bounces+dave.humphries=dytech.com.au@gnu.org] On
Behalf Of Brian Elmegaard
Sent: Tuesday, 21 February 2006 8:43 AM
To: help-gnu-emacs@gnu.org
Subject: Re: Space in compiler file name

Eli Zaretskii <eliz@gnu.org> writes:

> Did you try to quote the file name which has the embedded spaces?

Yes, I have tried:
c:/program files/dna/bin/dna.exe
'c:/program files/dna/bin/dna.exe'
"c:/program files/dna/bin/dna.exe" 
c:/program\ files/dna/bin/dna.exe 

> compile-command is conceptually a string that you would type at the 
> shell's prompt, so you need to quote or escape any characters special 
> for the shell, as you would when you type the command interactively.

I can do it in the windows shell. So emacs somehow interferes when it
passes this to the shell.

How could I escape or quote a space in a shell command?

tia,
--
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <mailman.1012.1140499926.2856.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-02-25  8:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-20  7:55 Space in compiler file name Brian Elmegaard
2006-02-20 21:00 ` Eli Zaretskii
     [not found] ` <mailman.961.1140469246.2856.help-gnu-emacs@gnu.org>
2006-02-20 21:42   ` Brian Elmegaard
2006-02-21 12:21     ` Reiner Steib
2006-02-21 19:51     ` Eli Zaretskii
     [not found]     ` <mailman.1066.1140542049.2856.help-gnu-emacs@gnu.org>
2006-02-22  7:19       ` Brian Elmegaard
     [not found]     ` <mailman.1116.1140553083.2856.help-gnu-emacs@gnu.org>
2006-02-22 15:14       ` Brian Elmegaard
2006-02-23 18:15         ` Kevin Rodgers
2006-02-24  7:28         ` Eli Zaretskii
     [not found]         ` <mailman.19.1140819603.5016.help-gnu-emacs@gnu.org>
2006-02-25  8:45           ` Brian Elmegaard
     [not found]         ` <mailman.41.1140852357.5016.help-gnu-emacs@gnu.org>
2006-02-25  8:45           ` Brian Elmegaard
  -- strict thread matches above, loose matches on Subject: below --
2006-02-21  5:30 Dave Humphries
2006-02-21 19:52 ` Eli Zaretskii
     [not found] <mailman.1012.1140499926.2856.help-gnu-emacs@gnu.org>
2006-02-21  9:40 ` Brian Elmegaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).