Charles Dye Super Moderator May 4,972 128 Staff member May 23, 2023 #2 It's not nice to fool Mother Parser!
rconn Administrator May 13,066 195 Staff member May 23, 2023 #3 You provided IF with two test comparisons when it only supports one, so it discarded the first one and used the second. What did you *intend* that malformed IF to do?
You provided IF with two test comparisons when it only supports one, so it discarded the first one and used the second. What did you *intend* that malformed IF to do?
vefatica May 12,939 171 May 23, 2023 #4 It came from a statement like this. I almost always quote regexes (whether they need it or not) and in a test, I wanted to use the regex "=". Code: if "%1" != "" (set regex=%1) else (echoerr tgrep: Missing regex & quit) I changed it to this. Code: if *%1* != ** (set regex=%1) else (echoerr tgrep: Missing regex & quit)
It came from a statement like this. I almost always quote regexes (whether they need it or not) and in a test, I wanted to use the regex "=". Code: if "%1" != "" (set regex=%1) else (echoerr tgrep: Missing regex & quit) I changed it to this. Code: if *%1* != ** (set regex=%1) else (echoerr tgrep: Missing regex & quit)