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

Attachment: 0001-print-regerror-string-on-regcomp-error.patch
Description: Binary data

Reply via email to