https://bugs.winehq.org/show_bug.cgi?id=56820
Bug ID: 56820 Summary: error in bat file (operator ||) Product: Wine Version: 9.9 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: nemos200408@gmail.com Distribution: ---
error processing bat file (operator ||), when use this operator bat script must execute command after || if command before errorlevel is NOT 0, but command execute anyway
simple test bat file
echo 123 || echo error
on normal it must output only
123
but it output
123 error
https://bugs.winehq.org/show_bug.cgi?id=56820
Eric Pouech eric.pouech@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@gmail.com Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #1 from Eric Pouech eric.pouech@gmail.com --- Marking as dup of implementing || and && operators in batch file
Note that statement in #1 "if command before errorlevel is NOT 0" is partially wrong. What should be taken care of is command return code, which is not always the error level (but sometimes is). I have a full implementation of all of this.
*** This bug has been marked as a duplicate of bug 32679 ***
https://bugs.winehq.org/show_bug.cgi?id=56820
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing duplicate.