[1/3] cmd: fixed wrong else statement processing (try 2)

Mikhail Bystryantsev ho-rr-or at mail.ru
Sat Jan 24 09:03:46 CST 2015


Fixed bug  https://bugs.winehq.org/show_bug.cgi?id=37478
Try 2 (combined into patch sequence for valid applying)

Swapping between if and else processing was occurred every time when else statement occurred, so each odd else/else if was executed.

if 1 == 1 (
  echo 1
) else if 1 == 1 (
  echo 2
) else if 1 == 1(
  echo 3
) else if 1 == 1 (
  echo 4
) else (
  echo 5
)

Output was:
1
3
5
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-cmd-fixed-wrong-else-statement-processing.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150124/f9cddeb5/attachment.txt>


More information about the wine-patches mailing list