./test.sh: 行 5: 予期しないトークン `{a=A' 周辺に構文エラーがあります

b () (a=A;echo $a)