Re: [PATCH] trivial add ;& ;;& case break types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vladimir N. Oleynik wrote:

The trivial patch for add ';&' and ';;&' case break types in attach


OOPS, I forgot this lines of patch to parser.c:

@@ -818,8 +822,16 @@
                        pungetc();
                        RETURN(TPIPE);
                case ';':
-                       if (pgetc_eatbnl() == ';')
+                       c = pgetc_eatbnl();
+                       if (c == '&')
+                               RETURN(TENDCSCONT);
+                       if (c == ';') {
+                               c = pgetc_eatbnl();
+                               if (c == '&')
+                                       RETURN(TENDCSNPAT);
+                               pungetc();
                                RETURN(TENDCASE);
+                       }
                        pungetc();
                        RETURN(TSEMI);

--w
vodz



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux