https://bugs.winehq.org/show_bug.cgi?id=32679
--- Comment #13 from alexcoffin1999@gmail.com --- (In reply to joaopa from comment #12)
Does the bug still occur with wine-4.0-rc7?
Yep just try "echo expected && echo expected || echo unexpected"
It was more complicated to properly implement than I had initially thought and then I became busy. It turns out that batch followed the usual programming language rules somewhat (if I recall correctly), I only note the usual part since it usually doesn't, and had operator precedence and parentheses correctly handled for "&&" and "||" along with somehow handling "&" and "|" (I forget how). My *very old* patch had only dealt with the section on global ERRORLEVEL as opposed to operator precedence, parentheses, etc. and was rejected (rightly so) for those reasons.