If a command in $(...) contains a case-esac construction, the
bash prints a syntax error instead
of executing the code:
bash: syntax error near unexpected token `;;'
Repeat-By:
A simple example is: x=$(a=4; case $a in 3) echo a=3;; 4) echo
a=4;; esac)
(typed in an interactive shell or being part of a shell script).
The same error has been seen on Windows Vista, Windows XP and
Windows2000.
The same error has been seen with an earlier version of bash,
i.e. 2.05b.0(8)-release