Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » pre-build stripping backslashes in SubWCRev cmd
pre-build stripping backslashes in SubWCRev cmd [message #735082] Mon, 10 October 2011 17:35 Go to next message
Eclipse UserFriend
I'm using Eclipse Indigo for C/C++ on Windows 7 and I have the following pre-build command in my project:

SubWCRev ${workspace_loc:/IMProbe} ${workspace_loc:/IMProbe/svnversion.tmpl} ${workspace_loc:/IMProbe/svnversion.h}

This generates the following error message:

SubWCRev C:\Users\bforeman\workspace\IMProbe C:\Users\bforeman\workspace\IMProbe\svnversion.tmpl C:\Users\bforeman\workspace\IMProbe\svnversion.h
File 'C:UsersbforemanworkspaceIMProbesvnversion.tmpl' does not exist

If I paste "SubWCRev C:\Users\bforeman\workspace\IMProbe C:\Users\bforeman\workspace\IMProbe\svnversion.tmpl C:\Users\bforeman\workspace\IMProbe\svnversion.h" into a command shell it runs perfectly.

Somehow, the backslashes are being stripped when the command is run from inside the pre-builder, evidently by /bin/sh. Does anyone have an idea how to prevent this?
Re: pre-build stripping backslashes in SubWCRev cmd [message #735863 is a reply to message #735082] Wed, 12 October 2011 18:58 Go to previous messageGo to next message
Eclipse UserFriend
So it looks like the pre-builder path computation is failing to delimit backslashes before it passes commands to the bash shell. So ${workspace_loc} gets expanded to C:\Users\bforeman\workspace when it should be C:\\Users\\bforeman\\workspace. Without the delimitting backslash, the bash shell strips them.

Does anyone know if there is a flag I can set in Eclipse to correct this behavior or to signal bash not to strip the backslashes?
Re: pre-build stripping backslashes in SubWCRev cmd [message #735867 is a reply to message #735863] Wed, 12 October 2011 19:33 Go to previous message
Eclipse UserFriend
I'm pretty sure this is a bug. I've submitted it as bug number 360744.
Previous Topic:Unresolved function calls
Next Topic:__STDC__ always defined in CDT??
Goto Forum:
  


Current Time: Wed Jul 16 14:14:15 EDT 2025

Powered by FUDForum. Page generated in 0.08040 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top