Re: syntax error while parsing a case command within `$(...)'
From:
Andreas Schwab
Subject:
Re: syntax error while parsing a case command within `$(...)'
Date:
Tue, 16 Feb 2021 09:28:16 +0100
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux)
On Feb 16 2021, Koichi Murase wrote:
> Because the ending keywords---}, fi, done, and esac---are allowed to
> be chained, which I think is undocumented though.
See 2.4 Reserved Words.
This recognition shall only occur when none of the characters is
quoted and when the word is used as:
* The first word of a command
* The first word following one of the reserved words other than
case, for, or in
* The third word in a case command (only in is valid in this case)
* The third word in a for command (only in and do are valid in this
case)
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."