On Thu, Oct 26, 2023, 20:30 Dale R. Worley <wor...@alum.mit.edu> wrote:
> I suspect the difference between the versions is how the regexp is > unquoted while it is being read, with version 3 interpreting [^\'] as > "character class excluding newline, backslash, and quote" and version 5 > interpreting it as "character class excluding newline and quote". > That seems right, just note that Bash is matching without the REG_NEWLINE flag -- [[ $'\n' =~ [^x] ]] is true. >