https://bugs.winehq.org/show_bug.cgi?id=45506
--- Comment #20 from Jason Edmeades us@edmeades.me.uk --- (In reply to Jason Edmeades from comment #19) Sorry, I wrote that when away from a computer and I've read the details in more depth. So I guess the key question is whether previously a batch program used the 'if' and only worked because it was actually not behaving, and hence the cmd fix is correct but has exposed an underlying problem (eg stub tasklist etc), or whether the fix to cmd is bad. From all the testing I have done on windows cmd.exe, I believe the fix to be good but as always there are so many combinations its impossible to know so we need to look at this specific one. I dont use wine-staging, only git based wine, so its hard for me to recreate.
As I said, the best move is to grab a +cmd log (ideally in good and bad case) and lets see the syntax of the command which looks bad, and if there is an underlying batch pgm we can look at its behaviour.