Menu

#733 Character replaced in project custom variables

Undefined
open
nobody
None
Bug_Report
2018-09-08
2018-09-03
No

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.

Discussion

  • Fabián Inostroza

    I'm using C::B release 17.12 rev 11263, SDK version 1.33.0 in Debian testing from jens repo.

     
  • Teodor Petrov

    Teodor Petrov - 2018-09-03

    What do you mean by custom variable? Why don't you use backtick expressions?

     
  • Fabián Inostroza

    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.

     
  • Teodor Petrov

    Teodor Petrov - 2018-09-03

    I'm still confused? You want the custom variable to have the value $(....), aren't you?

     
  • Fabián Inostroza

    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.

     
  • ollydbg

    ollydbg - 2018-09-08
    • status: open --> invalid
     
  • ollydbg

    ollydbg - 2018-09-08

    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.

     
  • Teodor Petrov

    Teodor Petrov - 2018-09-08

    ollydbg: Why? The bug is still there, there is just a workaround.

     
  • ollydbg

    ollydbg - 2018-09-08
    • status: invalid --> open
    • Type: Undefined --> Bug_Report
     
  • ollydbg

    ollydbg - 2018-09-08

    OK, so I reopen it. Sorry about the noise

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.