On 2023-02-13 10:43, ASSI via Cygwin wrote:
Corinna Vinschen via Cygwin writes:
On Feb 12 22:03, Cygwin dash Co-Maintainer wrote:
The following packages have been upgraded in the Cygwin distribution:

* dash        0.5.12-2

This package is being upgraded to current as the previous release
breaks existing function that may be relied on by some scripts.
This release has been rebuilt disabling libc fnmatch and glob as
Cygwin/winsup/newlib do not support locale dependent named character
classes like glibc.

Can you give me an example?  I'm a bit puzzled because fnmatch as well
as glob in Cygwin support native characters.

But not locale dependent named character classes like regexp in paths.

AFAIU, the issue was with locale dependent character classes, not
characters. Andrey specifically mentioned [[:space:]] in the original
bugreport.

Specifically support in fnmatch and glob, now updated in glibc, and their use in dash for parameter expansion in place of (gnulib?) regexp support.

So how do we fix in Cygwin without pulling in GLibc code?

It's fixed in release 2 which disables 0.5.12 changed default (using [Cygwin/winsup/newlib] libc fnmatch and glob, without testing functionality), and goes back to using its own previous default (gnulib?) regexp code for parameter expansion which supports locale dependent named character classes.

As glibc "recently" fixed their fnmatch and glob to support locale dependent named character classes like [[:blank:]], dash decided to use those in parameter expansions for consistency, but not exactly clearly documented, although they added config options to enable/disable each of libc fnmatch/glob.

Cygwin bash parameter expansion also supports locale dependent named character classes.

        $ info bash pattern
        $ info sed classes

--
Take care. Thanks, Brian Inglis                 Calgary, Alberta, Canada

La perfection est atteinte                      Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter     not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer        but when there is no more to cut
                        -- Antoine de Saint-Exupéry

--
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
  • [ANNOUNCEMENT] Up... Cygwin dash Co-Maintainer via Cygwin-announce via Cygwin
    • Re: [ANNOUNC... Corinna Vinschen via Cygwin
      • Re: [ANN... Corinna Vinschen via Cygwin
      • Re: [ANN... Andrey Repin via Cygwin
        • Re: ... Brian Inglis via Cygwin
          • ... Corinna Vinschen via Cygwin
            • ... Corinna Vinschen via Cygwin
              • ... Corinna Vinschen via Cygwin
                • ... Andrey Repin via Cygwin
                • ... Brian Inglis via Cygwin
                • ... Corinna Vinschen via Cygwin

Reply via email to