Dash Archive mirror
 help / color / mirror / Atom feed
From: "Vladimir N. Oleynik" <dzo@simtreas.ru>
To: dash@vger.kernel.org
Subject: Re: [PATCH] trivial add ;& ;;& case break types
Date: Thu, 4 Feb 2021 01:44:27 +0400	[thread overview]
Message-ID: <5250f7bb-5f4d-9848-34a9-49b7f01f0d16@simtreas.ru> (raw)
In-Reply-To: <41b9469e-f042-3ef3-ca30-2181f3d4ae8e@simtreas.ru>

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

      reply	other threads:[~2021-02-03 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-03 21:29 [PATCH] trivial add ;& ;;& case break types Vladimir N. Oleynik
2021-02-03 21:44 ` Vladimir N. Oleynik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5250f7bb-5f4d-9848-34a9-49b7f01f0d16@simtreas.ru \
    --to=dzo@simtreas.ru \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).