bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash dislikes empty functions or flow control bodies


From: Greg Wooledge
Subject: Re: bash dislikes empty functions or flow control bodies
Date: Tue, 18 Jan 2022 07:35:28 -0500

On Tue, Jan 18, 2022 at 12:44:46PM +0100, l.bashbug@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]