From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id AC52838432D6 for ; Mon, 13 Feb 2023 19:03:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC52838432D6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id RZqzp1PRtc9C4Re6upsDXK; Mon, 13 Feb 2023 19:03:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1676315012; bh=HjGeuGRR0dakxhR5U8RXcTfgUSDc7NYMSk4r2Wj/XxU=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=UqfOn7HoHqBqpWqLADgdgb/unqMsRv/lkNB1Pdqn6XRpD9fctmFXRPIKzvTGSDgu9 mObwATKwHkdEi68dYGEbJaxKMOfXJ9a3JwoQwSNO9IjexHvIObc4UI3SaP1PGhx8/y HhN9GOul0XA9Qqo5vMMDCks2pPtiCWTTTKna0hAjqnKj12sSiCALwAVQUKuFVoOJlW j5AVRBo4eOUsBOJFH8KgGF+UpceoWhMWeVaLzz1/1/HB5rjLWKAO96ooX0/4QoiH8h fkHbKKhYvZbOrjAtVLvGB0p5Cbsb/pl57Ks7YgKoJpMD65CQA7XuEghnRNHa4rbUst 7FTqAPkqmjWmQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id Re6tpKG1HHFsORe6tpN1Iu; Mon, 13 Feb 2023 19:03:32 +0000 X-Authority-Analysis: v=2.4 cv=XZqaca15 c=1 sm=1 tr=0 ts=63ea8984 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=HOvN0roOp5ukEXjwcb8A:9 a=QEXdDO2ut3YA:10 Message-ID: <8a583e14-b413-d1a2-35d9-e76f73a4b338@Shaw.ca> Date: Mon, 13 Feb 2023 12:03:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Reply-To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: dash 0.5.12-2 Content-Language: en-CA To: cygwin@cygwin.com References: <6810586169.20230213204858@yandex.ru> From: Brian Inglis Organization: Inglis In-Reply-To: <6810586169.20230213204858@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfHKB2jTxEKnGwI4n8x6QuWeLgwhxqpYYPgnuQsXmYfoRwuE1RFu4OrATSTniSwncUNGVX2hNGOGfYT/kmAM4lz/ckA1nmRGC5/PYttFz+C4HeL1mfAUU 3ncAeke+ba8jG0qZWF8PcUdqJdjqpwPVFj6WsesaeyjKU21b+Me8zaLWY/7RkcQvfjOJhKgJimTY7g== X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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