On Tue, Jan 18, 2022 at 12:44:46PM +0100, l.bash...@scarydevilmonastery.net wrote: > a: defining an empty function will throw a syntax error > b: defining an empty bodies flow control construct will thow a syntax error
This has been the case since the original Bourne shell in the 1970s. The grammar requires a non-empty body in these places. I doubt this is going to change, ever.