shithub: mc

Download patch

ref: 1373864c5c4c6d0ebaf8beec34f6e4f5e5089f83
parent: c98afde323137b801e18e42c3cb99fb51b1d6011
author: Ori Bernstein <[email protected]>
date: Thu Jun 7 14:58:23 EDT 2012

Tokenize '&&' correctly.

    Copy-paste typo had '&| as the expected thing. Oops.

--- a/parse/tok.c
+++ b/parse/tok.c
@@ -332,7 +332,7 @@
         case '&':
                   if (match('='))
                       tt = Tbandeq;
-                  else if (match('|'))
+                  else if (match('&'))
                       tt = Tland;
                   else
                       tt = Tband;