Charles Dye Super Moderator May 5,404 166 Staff member 2023-05-23 #2 It's not nice to fool Mother Parser!
rconn Administrator May 13,695 257 Staff member 2023-05-23 #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 13,834 211 2023-05-23 #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)