- Jul
- 532
- 10
Discovered this one by accident!
The smart quote is what breaks it. The char[8221]. It’s fine without it. It hangs indefinitely with it.
reproduceable on v33.00.20 with no ini file/fresh run
Please DON’T remove the ability to setdos /c to %@CHAR[1] though. That command is very picky about which characters you can use. None over ASCII[128]! I was dealing with a situation where i wanted to parse a file with possibly every character anyone would ever type, including command separator characters, and the safest way to do that was for me to set a command separator that would NEVER show up in any typed lyrics for any song ever made by any human in history. Was surprised when it accepted %@CHAR[1] (but not %@CHAR[7], hehe). What I really wanted was to set it to some weird unicode character that would truly never come up.
I forget why turning off the command separator altogether didn’t work for me. I think because I have a lot of %+ in my scripts? Whatever. I was surprised to find out you could echo 100%, but not with the smart quote at the end!
Hard for me to imagine how this would hang it.
Code:
setdos /x-3
setdos /c%@CHAR[1]
echo 100%%@CHAR[8221]
The smart quote is what breaks it. The char[8221]. It’s fine without it. It hangs indefinitely with it.
reproduceable on v33.00.20 with no ini file/fresh run
Please DON’T remove the ability to setdos /c to %@CHAR[1] though. That command is very picky about which characters you can use. None over ASCII[128]! I was dealing with a situation where i wanted to parse a file with possibly every character anyone would ever type, including command separator characters, and the safest way to do that was for me to set a command separator that would NEVER show up in any typed lyrics for any song ever made by any human in history. Was surprised when it accepted %@CHAR[1] (but not %@CHAR[7], hehe). What I really wanted was to set it to some weird unicode character that would truly never come up.
I forget why turning off the command separator altogether didn’t work for me. I think because I have a lot of %+ in my scripts? Whatever. I was surprised to find out you could echo 100%, but not with the smart quote at the end!
Hard for me to imagine how this would hang it.