On Apr 01 2020, Krystian Wojtas via Bug reports for the GNU Bourne Again SHell
wrote:
> Making comments in pipes using command substitution is very helpful.
> But there is syntax error it it is done just before while loop. Could it be
> considered as bug?
Not a bug. Reserved words are only recognized at the start of a
command, before any expansions. For the same reason a compound command
cannot be preceded by redirections.
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."