Using an Alternative COMSPEC

General questions regarding the usage of CodeLite
jma
CodeLite Curious
Posts: 1
Joined: Thu Oct 10, 2013 5:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Using an Alternative COMSPEC

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Using an Alternative COMSPEC

Post 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
Make sure you have read the HOW TO POST thread
Post Reply