On Fri, Apr 2, 2021 at 11:41 AM Robert Elz <k...@munnari.oz.au> wrote: > > Date: Thu, 01 Apr 2021 21:33:31 -0400 > From: wor...@alum.mit.edu (Dale R. Worley) > Message-ID: <874kgpqxlg....@hobgoblin.ariadne.com> > > | I was going to ask why "else {" works, > > Wrong question. That one is easy. What follows > 'else' is a list and the simplest form of a list > is a simple command, which starts with a command > word, so reserved words are always going to work > there, even without the "follows a reserved word' > rule. > > The right question would be why '} else' works.
Indeed. This inconsistency should be fixed and prevent people from using it wrong. `}; else` should work but not `} else` just like how `{ :; } :` doesn't. -- konsolebox