Hi all,

After updating from Cygwin-3.4.10 to recent 3.6.9, I noticed some unexpected
behavior in some of my Bash scripts. While regular expressions mainly work,
I found that the following does not:

$ arg_board="x"; [[ "${arg_board:-}" =~ ^(custom|)$ ]]; echo $?
2
$ arg_board=""; [[ "${arg_board:-}" =~ ^(custom|)$ ]]; echo $?
2

The expected return value should be either 1 for the first example or 0 for
the second one - which works in Cygwin-3.4.10.

Any idea?

Some version numbers:
$ cat /proc/version

CYGWIN_NT-10.0-26200 version 3.6.9-1.x86_64 (runneradmin@runnervmxu3fp) (gcc 
version 13.4.0 (GCC) ) 2026-04-21 15:46 UTC

bash          5.2.21-1
base-cygwin   3.8-2
cygutils      1.4.17-4
cygwin        3.6.9-1
cygwin-devel  3.6.9-1

Please let me know if you need further information.

--
Thanks and kind regards,
 Gerhard

Attachment: smime.p7s
Description: Kryptografische S/MIME-Signatur

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to