Subject: Re: bug#46093: Shell-script mode formatting error eats half the page

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Thu, 28 Jan 2021 01:36:40 +0800

>>>>> "LI" == Lars Ingebrigtsen <[email-masked]> writes:
LI> (I moved the semicolon to before the "do", not after.  Which is
LI> apparently the correct syntax according to

My example had no semicolon, not before, not after.

LI>     for name [ [in [words …] ] ; ] do commands; done

                                   ^^^ see, that semicolon is optional.
                                   That's what the extra brackets mean.

LI> So Emacs seems to do the correct thing here; closing.

Well, yes, if everybody always used the optional semicolon, you might say.