Since bash-5.3 now shows an error message when a regular expression can't be compiled, I thought it might be useful to add the regerror()-supplied string that provides more specifics on the failure, so we can get messages like:
$ [[ x =~ [z-a] ]] bash: [[: invalid regular expression `[z-a]': invalid character range
0001-print-regerror-string-on-regcomp-error.patch
Description: Binary data