Chris Sutcliffe wrote:
Hey All,

I'm having an issue with spaces in the makeprg command. When setting it to:

:setlocal mp=C:\Program\ Files\NSIS\makensis.exe

I get an error:

shell returned 1
(1 of 2): 'C:\Program' is not recognized as an internal or external command

Can someone please let me know how I go about getting this to work?

Thanx!

Chris


The space in the middle of Program Files has been mistaken for a separator.

One set of backslash escapes are taken away when the ":set" statement is interpreted, so no backslashes are left for later on.

Make sure you have 'shellquote' and 'shellxquote' properly set, then try

        :setlocal mp=C:\\PROGRA~1\\NSIS\\makensis.exe

and if it still fails, double the backslashes again.


Best regards,
Tony.
--
        INVENTORY
Four be the things I am wiser to know:
Idleness, sorrow, a friend, and a foe.

Four be the things I'd been better without:
Love, curiosity, freckles, and doubt.

Three be the things I shall never attain:
Envy, content, and sufficient champagne.

Three be the things I shall have till I die:
Laughter and hope and a sock in the eye.

Reply via email to