User forums > Using Code::Blocks

Set programs' arguments does not work on Windows CodeBlock

<< < (2/2)

oBFusCATed:
Are you sure this won't break something?
For example if someone expects that unset variables are replaced with empty strings?

I think a better solution is to define some clear way to escape this character. Like doing "\$myNotVar"or doing "$$myNotVar"...

MortenMacFly:

--- Quote from: oBFusCATed on October 25, 2020, 10:15:26 am ---Are you sure this won't break something?

--- End quote ---
I'm afraid it did break something, please check the nightlies reports.

J.:
Two comments:

@vahalia: Why not using another initial tag to avoid that other shells your program is called from are confused because of variable expansion, e.g. replace '$' by '#' or something else?

@Pecan et al.: Why not rather allowing variable names to start with [a-z] only?

m_RE_Unix.Compile(_T("([^$]|^)(\\$[({]?(#?[a-z][a-z_0-9.]*)[)} /\\]?)"),               wxRE_ICASE | wxRE_EXTENDED | wxRE_NEWLINE);   


--- Quote from: Pecan on October 24, 2020, 03:56:23 pm ---fixed: head r12214

--- End quote ---
Just for the record: reverted in r12228.

Navigation

[0] Message Index

[*] Previous page

Go to full version