From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14726 invoked from network); 29 Sep 2021 10:34:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2021 10:34:22 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1632911662; b=EDxFQptZAZNbN6kcbravlmPiYd15AYod7aT9mJtoph/C+bk9e6a+giUj4kgDR/ztLvC5VJcyyN NPE2gsRoTqVW0c+axQWFdLkoXRBk10GZQosGB1X2AdZ3jDaBjf0gDN2I/pgJDNGf45wrVCCRDH +vmxSQhhqjcq5SliJFaCfwJG+8HdN5gRs7mFpcYyrqBsyFWJ8Diu524WaSF4q3eFPnTizN1/Na 6mDUb1E75jAWvexSSExIshC1HJ2mxv8AeMvcP/uILaiYMxLCIUj8pxABE/84h0MQoBfhfRAE3t d+dFQcZoHYAoGDHMpBWO0h7ziaZAolcqBkrhBYS6Yb5zng==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1632911662; bh=aYVkSdVQ3rs8kNwKqGaJ0PAwv14iujyNzTCy/hPWNpo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=J7qQBnS40z3hX6C++X847qwu6KOT5Qo51OGpHkCa9cI19ClJ72WvwLzL54q4otPWKfhnBLVK9+ j2Jc0zy8UqKdDA1/56dzn2BBfSOoq6s8tIO4k7aYRQ39LIwEfwErvTJBm3gyJ1FtbmwtbR+dUF AcXFbfEABrpBwsNumVZo18DFevVk7fyVo78QKTXt92fL8HgNDmy0zG/FMp7wTQmQAI+yXb10KQ aT0xjXVlw8X3li/ikE2sqGrakkH5YpRvvq+DDuWQYhwxtLM7ci2iixnOULqtFeb2OqRe/96EN+ q4XC3+0u4Qg1PNlKhgD5On7qbqOoTnr9nNd9VTPhzduImA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ly9jlUpBgL/h7NBkao6vfXEhvUjfZ3GF7XIKqqjbj1k=; b=TAwID5HHOC+8pY+5/hC1vgjoTu lGrbrj+ePdHcGxDYAFbCga7liosJPegc6Weq2RTxVN4vQJeJqyOIUESkrDuMiFmjEiYAJD6PduisX ZotXR2BX1+J7NTglyL5rQW2G2eMzJDT4MWcOBZcmp5nzi5OG3XbOXJESPDkk9hBWorLGsIl1NYFit Lfo/B6CTpPm2QcSkT7Fjz0WEDRgcerqGvjnxW86XFlUea3RH01hScNz7ZCtuWwOUYu498kBBVoZKu Xx+CNGCrEyJD4oewUuzxb5HTUK4b1hCXIwLhFxYng03QqZYD3Gq4opA1GqJPst9Ak+ZiQxv7qIP98 WMZrHVhQ==; Received: from authenticated user by zero.zsh.org with local id 1mVWur-000KOO-T6; Wed, 29 Sep 2021 10:34:21 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f52.google.com ([209.85.166.52]:42532) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mVWu5-000Jff-Lu; Wed, 29 Sep 2021 10:33:34 +0000 Received: by mail-io1-f52.google.com with SMTP id b10so2432547ioq.9 for ; Wed, 29 Sep 2021 03:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ly9jlUpBgL/h7NBkao6vfXEhvUjfZ3GF7XIKqqjbj1k=; b=T+UggSH23hIOEjVQHXVSLfS88Tajr+MYyS9338b4WaCioNam0lr5NukF6ETmaWlWW4 8xJ3YZnk9E2yac/aGblODB7tB0XSkM9FTmJAXGwj700Scij9nGM12rbbY/ZwXkhd8hWO gdCz3NuJJnQ9wSRCw0W1RqaAYKTEh8teXIPrt7DoHH9x7lB1UCan35e9yD4OGqdc3VMN hx2wsWkNMR1TFfwsY+Uor9abTiJSmkljG3MoW1FdRYSjn0XezSeeJiANYel+W4Grrcjc 0iI6e9BgxsvmkAatr4MKXTP3K7wsNN6mn+7dulrUj6ihlqCwgNFJlmVxM3ozUqr4yNWt yXZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ly9jlUpBgL/h7NBkao6vfXEhvUjfZ3GF7XIKqqjbj1k=; b=Pk+iJlaZ/WFiDFdkEXO05+hiv9MUuKdEDGbF0RShNOPzJdKjGRhGfLjl2J54CKflUP woG/bKuWizO4FtD+FrWAgS2Xa/DE3x4QW+OHVgsbKVvf175TQo4jttcVGkmgYub5f33/ 8X/v02kOhzYbj6Nm+A3n6P/oO76Ewe4hUn7VHJ8OoYgEjOreyHSTMVvAqLccZWoeCu6I U71l+/VBvbyYfMLnrkDRGewzvjM10lv9bhgbxV1LyqSVnATEcHLwI+3kTKSCW6eg8b4Q MEbQl5Lb+j/NGZ82z92btbzgjCQmM5m7rtWuHnDgvmkdzY1iX3FZ9h9FUoMtnjgMX5Ud X4WQ== X-Gm-Message-State: AOAM531IubXKmn1p72RSBmDjqb3zCx81Bq7/kqKHdotYtWajr+lVsQKM Ok5xN3DIXPg2DPP2lKwdGmAHBmLZINIPGtaXEDY= X-Google-Smtp-Source: ABdhPJz4wMyCO0YKKQqGyxVrf3ekMIvRfV+V0uMd5wqX4MMszR8An4UURsGXAzriX6lF0dqcPXaSUe5oH7LfV61WGJE= X-Received: by 2002:a02:7f4a:: with SMTP id r71mr8858356jac.132.1632911612485; Wed, 29 Sep 2021 03:33:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Wed, 29 Sep 2021 12:32:56 +0200 Message-ID: Subject: Re: case sensitive globbing To: Roman Perepelitsa Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="0000000000009ca13405cd1fdcb5" X-Seq: 27171 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000009ca13405cd1fdcb5 Content-Type: text/plain; charset="UTF-8" Yes, it works. I thought case_glob was unset because I wasn't seeing it in the list produced by setopt, but it seem that one should explicitly call setopt no_case_glob like you showed me to thanks Pier Paolo Grassi Il giorno mer 29 set 2021 alle ore 12:27 Roman Perepelitsa < roman.perepelitsa@gmail.com> ha scritto: > On Wed, Sep 29, 2021 at 12:21 PM Pier Paolo Grassi > wrote: > > > > Hello, I have case_glob unset. should: > > > > *a* > > > > match the file Abc or not? > > Yes, in locales where 'a' is lowercase 'A' it should. > > () { > emulate -L zsh -o no_case_glob > local LC_ALL=C > touch Abc > print -r -- *a* > } > > Abc > > Does this work for you? > > Roman. > --0000000000009ca13405cd1fdcb5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, it works.
I thought case_glob was unset because I= wasn't seeing it in the list produced by setopt, but it seem that one = should explicitly call setopt no_case_glob like you showed me to

thanks

=
Pier Paolo Grassi
<= br>

Il giorno mer 29 set 2021 alle ore 12:27 Roman Perepel= itsa <r= oman.perepelitsa@gmail.com> ha scritto:
On Wed, Sep 29, 2021 at 12:21 PM Pier Paol= o Grassi <pier= paolog@gmail.com> wrote:
>
> Hello, I have case_glob unset. should:
>
> *a*
>
> match the file Abc or not?

Yes, in locales where 'a' is lowercase 'A' it should.

=C2=A0 =C2=A0 () {
=C2=A0 =C2=A0 =C2=A0 emulate -L zsh -o no_case_glob
=C2=A0 =C2=A0 =C2=A0 local LC_ALL=3DC
=C2=A0 =C2=A0 =C2=A0 touch Abc
=C2=A0 =C2=A0 =C2=A0 print -r -- *a*
=C2=A0 =C2=A0 }

=C2=A0 =C2=A0 Abc

Does this work for you?

Roman.
--0000000000009ca13405cd1fdcb5--