On Tuesday, February 27, 2024, Martin D Kealey <mar...@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