I added a custom variable to a project with the following content:
$\(git describe --abbrev=6 --dirty --always --tags)
Saved the project and the cbp file contains the string as it was typed.
When opening the project again and saving it the backward slash character gets replaced by a slash character.
I'm using C::B release 17.12 rev 11263, SDK version 1.33.0 in Debian testing from jens repo.
What do you mean by custom variable? Why don't you use backtick expressions?
I mean the "Custom variables" tab in the project build options. If you add a new variable with the content in the original post it will be saved fine in the project file only once, subsequent project save will replace the backward slash by a slash.
I'm still confused? You want the custom variable to have the value $(....), aren't you?
Yes, I added that custom variable in an attempt to include the git information in the executable. I finally ended up adding the command directly in the defines. I just filled this ticket because of the character replacement, if that is the expected behaviour then please close the ticket.
BTW, I never tried the backticks because I think they look strange, however, after trying them, they seem to work better for this purpose.
I close this ticket now.
ollydbg: Why? The bug is still there, there is just a workaround.
OK, so I reopen it. Sorry about the noise