Snippets with `${...}`

Sven Brauch mail at svenbrauch.de
Fri Nov 6 16:07:28 GMT 2020


Hi,

hm, seems that the escaping for '$' is broken. Feel free to create a bug 
report and assign it to me.

As a workaround, under scripts, insert

   function dollar() { return '$'; }

and then write the snippet like this

   test (${VAR} = ${dollar()}{${VAR}})

Greetings,
Sven

On 11/6/20 2:15 PM, Alex Turbov wrote:
> Hi, devs
>
> I'm trying to add a trivial snippet to print the CMake variable:
>
> message(STATUS "${VAR}=\${${VAR}}")
>
> However, the second `${VAR}` won't expand :(
> Any ideas, please?


More information about the KWrite-Devel mailing list