bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] print regerror string on regcomp error


From: Grisha Levit
Subject: [PATCH] print regerror string on regcomp error
Date: Wed, 12 Jul 2023 12:01:02 -0400

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

[Prev in Thread] Current Thread [Next in Thread]