Sublime Forum

Issue with double qoute " in Sublime Build System

#1

Hi all,

I am trying to make a new build system to build my code. Here the command that I normally run on windows command prompt:

[code]F:\code>myscript.bat clean build "PROD_ID=HERO"[/code]

and here is my build script:

[code]{
“working_dir”: “${project_path:${folder}}”,
“shell”: true,

"windows":
{
	"cmd":"myscript.bat clean build \"PROD_ID=HERO"\"]
}

}
[/code]
but when I try to build it, it wouldn’t passed in the correct parameters instead of this:

 F:\code>myscript.bat clean build "PROD_ID=HERO"

The build script passed this in instead:

 F:\code>myscript.bat clean build \"PROD_ID=HERO\"

I thought that JSON use backslash as an escape sequence for double quote " . Any enlightenment would be appreciate. Thanks in advance.

0 Likes