Page 1 of 1

Using an Alternative COMSPEC

Posted: Thu Oct 10, 2013 5:52 am
by jma
Codelite seems to be appending sending the build commands to the COMSPEC interpreter with the assumption that it is cmd.exe and will run the command with the "/c" flag.

I have my COMSPEC set to bash, which interprets the "/c" as a file path and errs out on a path error.

Is there a way to change the flag used to send the commands to the shell?

Re: Using an Alternative COMSPEC

Posted: Thu Oct 10, 2013 8:28 am
by eranif
jma wrote:Codelite seems to be appending sending the build commands to the COMSPEC interpreter with the assumption that it is cmd.exe and will run the command with the "/c" flag.
so far you are correct.
jma wrote:Is there a way to change the flag used to send the commands to the shell?
No.

I suggest that you set your COMSPEC within codeilte to cmd.exe (it wont affect your system)
From the main menu: Settings -> Environment variables

Add this (unless your cmd.exe is placed somewhere else):

Code: Select all

COMSPEC=C:\Windows\system32\cmd.exe
Eran