[Buildbot-devel] Windows 8 shell command
Hugh Sorby
h.sorby at auckland.ac.nz
Thu Jan 29 19:58:55 UTC 2015
I guess I realised that ^ is the escape character but my problem is
understanding why did it get put there?
I pass the same string to the shell command as all the other build
slaves in particular the string passed to the Windows 7 build slave is
practically the same but this string doesn't get escaped. There is no
CMakeLists.txt file involved at this point really I am trying to invoke
it with this command.
From the stdio log from the Windows 7 slave:
'c:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\bin\\SetEnv.cmd'
'/Release' '/x64' '&&'
From the stdio log from the Windows 8 slave:
^"c:\Program Files\Microsoft SDKs\Windows\v8.1\bin\SetEnv.cmd^" /Release
/x64 ^&^&
Why does the windows 8 slave add the escape characters to my command?
If anybody could tell me I would really appreciate it.
On 01/29/15 11:48, Dan Kegel wrote:
> For what it's worth, ^ is the escape character for cmd, see
> http://ss64.com/nt/syntax-esc.html
>
> What's the CMakeLists.txt fragment that generates that command?
>
> On Wed, Jan 28, 2015 at 2:28 PM, Hugh Sorby <h.sorby at auckland.ac.nz> wrote:
>> Hi All,
>>
>> I am passing a string with spaces to a shell command for a windows 8
>> build slave and getting an error. It seems the " is being prepended
>> with a ^, this doesn't happen when I pass the same string to a windows 7
>> build slave. Here is a sample of the string as returned in the stdio
>> log for the step.
>>
>> ^"c:\Program Files\Microsoft SDKs\Windows\v8.1\bin\SetEnv.cmd^" /Release
>> /x64 ^&^&
>>
>> Can anyone tell me why this is happening and how to work around it, I am
>> using Buildbot 0.8.7p1.
>>
>> Many thanks,
>> Hugh.
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
More information about the devel
mailing list