bug-bash
[Top][All Lists]
Advanced

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

Re: declare -f does not output esac pattern correctly


From: Oğuz
Subject: Re: declare -f does not output esac pattern correctly
Date: Tue, 27 Feb 2024 10:48:00 +0200

On Tuesday, February 27, 2024, Martin D Kealey <martin@kurahaupo.gen.nz>
wrote:

>
> I've been thinking for a while now that POSIX made a mistake when it
> permitted ';;' before the closing 'esac'.
>

I think that decision was made before POSIX. Besides it's handy when
generating case clauses on the fly, you may not always know which case is
going to be the last. You may not always know that at least one clause is
going to be generated either, but `case x in esac' is valid, so it's not a
problem. The syntax for the case command is neat as-is.


-- 
Oğuz


reply via email to

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