Hello In bash-5.2, There is one modification: fix to expand $'...' and $"..." in certain word expansions while expanding lines of here-document data
This modification has been changed when dealing with '$(', It seems to have missed the right bracket. Maybe we should add this bracket. I hope this patch can fix your problem
fix.patch
Description: Binary data