Re: Bash 5 bug in Cygwin only: empty pattern inside a regular expression

2025-02-24 Thread Corinna Vinschen via Cygwin
On Feb 24 17:01, LLoyd via Cygwin wrote: > Hello. > > I'll try to keep this short: > In Cygwin only, using bash 5.2.21-1 or 5.2.15-3 (the only 5.* versions > available), "empty" in a regular expression is not properly matched > and breaks the regular expression. > It's not a quoting issue, I also

Re: Bash 5 bug in Cygwin only: empty pattern inside a regular expression

2025-02-24 Thread LLoyd via Cygwin
On Mon, 24 Feb 2025 at 17:01, LLoyd wrote: > > [...] > reg='foo|'; [[ foo =~ $regex ]] > > [...] Sorry, typo on that line, I meant to write that I also tested: regex='foo|'; [[ foo =~ $regex ]] It's probably a libc bug. Please let me know if I can do anything. LLoyd -- Problem reports: h

Bash 5 bug in Cygwin only: empty pattern inside a regular expression

2025-02-24 Thread LLoyd via Cygwin
Hello. I'll try to keep this short: In Cygwin only, using bash 5.2.21-1 or 5.2.15-3 (the only 5.* versions available), "empty" in a regular expression is not properly matched and breaks the regular expression. It's not a quoting issue, I also tested with: reg='foo|'; [[ foo =~ $regex ]] GNU bash,