On Mon, Aug 31, 2026 at 12:49:15PM +0200, Andreas Schwab wrote:
> On Aug 31 2026, Mike Jonkmans wrote:
>
> > Being able to leave out the last ';' in { ... } would be really nice.
> > Saves typing (especially interactively) and would allow 'empty() { }' too.
> > It is also backwards compatible, scripts would already have been broken.
>
> That is not backwards compatible, because } is not special outside of
> reserved words position.
Ah, indeed it is not.
I thought one could make } reserved at the last position of a command.
But that is indeed not backwards compatible with e.g. 'echo }'.
Good catch.
--
Regards, Mike Jonkmans