#4 open
Jeremy Lightsmith

build_command commands with && run multiple times

Reported by Jeremy Lightsmith | April 21st, 2008 @ 01:43 PM

With ccrb 1.1.0 this build_command worked: project.build_command = %q{"C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat" && make ci} The batch file set environment variables, and then those variables were available to the make command. But in 1.2.1 the build fails because the environment variables have not been exported for access in the make command. The comment at the top of the file says && is supported, but svn r499 caused a regression. CommandLine.full_cmd builds the full command by echoing cmd to stdout and stderr and then actually running the command. When echo eventually executes to echo cmd to stdout and stderr, it echoes the prompt and the first command, but the second command executes instead of just echoing. I was able to fix the problem locally by putting quotes around cmd in both prompt_command strings. Here's a simpler example at a Windows shell: 1> echo dir && dir dir Volume in drive F is Builds ... list of files... 2> echo "dir && dir" "dir && dir" I think full_cmd should return something like this: 3> echo "Prompt$ dir && dir" >> outfile && echo "Prompt$ dir && dir" >> errfile && dir >> outfile 2>> errfile && dir >> outfile 2>> errfile 4> cat outfile "dir && dir" ... one dir listing... ... second dir listing... 5> cat errfile "dir && dir"

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages