- Jun
- 592
- 4
I'm using the @LEN function to get the length of a string. However, when that string contains special escaped characters, such as ^s, the length is wrong. Both the caret and the s are counted as separate characters. The same thing happens with strings enclosed by back-quotes. The back-quote characters are counted.
TCC(30.00.22): C:\>echo %@len[1234]
4
TCC(30.00.22): C:\>echo %@len[^s1234^s]
8
TCC(30.00.22): C:\>echo %@len[`12%34`]
7
TCC(30.00.22): C:\>echo `12%34`
12%34