From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 18b99932 for ; Mon, 19 Aug 2019 06:47:06 +0000 (UTC) Received: (qmail 19636 invoked by alias); 19 Aug 2019 06:47:01 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44689 Received: (qmail 26028 invoked by uid 1010); 19 Aug 2019 06:47:01 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25545. spamassassin: 3.4.2. Clear:RC:0(209.85.221.50):SA:0(-0.1/5.0):. Processed in 0.750077 secs); 19 Aug 2019 06:47:01 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.50 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=UeqTKKfiHfsUouQGJ/HMUbl228OBwWfI8TE+kjFvKic=; b=HhcjIXifqj9zTfel0ncJtMbVz9jc/WoYZ8GH85A80S2Fr0pKF42unvUrysgln/kGbk bRZ2+L/I6iJMz7FJKop1iBnUpCcl4gP48dUPFnMOQVIipB0F6HVSb5JIyEq3KPfWLbAf JijyxcM03XHup3XSXtgnl6ib5JDJ82BpBHx0c3HqXCWHa+RwI3gZiwG3NRFyu4qXP5Ut UvGxN3mizecbYZ+xgm4Ion3dVN5fzTgxXrmVm/fDHSZVOSlEVUanSOzWV+nUTFPgzwov kTh74vB/U4QElnMvx3nHNFHAH8SyYdqqF2HHO32u7F5e/meteAI9YBnkVEtiiJvxh62Q r9jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=UeqTKKfiHfsUouQGJ/HMUbl228OBwWfI8TE+kjFvKic=; b=jegKrhoPFeO/md/Bu+Bae4O1FwisfBjzl7c235eDTq9LTLNlpQODvPPwEEKhq4PtlW 65IzzQuSSKu6ug4KVbL+0vgfOQ0Mph3KzA9wLPBQ5MFluAFNxAINWj53fWpNbtRie8+P dSiPnV0hYFFnTKkAGQEEL2FDG12+7E+BvkFzEQRaYdZG9NoDQ9LuIZvTRSaE8zOuT8QS Xfs1VlU1rimrS+IlrJhzw65Q5cTCruACYj1RZXFYkTQs2nGf8E/F+8IrrItFgIZuNeBR ikd2K0lGgbqUrIcZjq7rQF8gqJ+jOF6cCfYgSwon+FUgI6T8SR+0MQNivsv9rCdmTBza ZBog== X-Gm-Message-State: APjAAAVE6z+7J8eCRW+YB9Pt7iKmg6sBmMjRk7iWk3Z5uF6XC8T3Vk2S HLd7l76pSkHwwojhCTVFM5D3IoNrNdg= X-Google-Smtp-Source: APXvYqxI0Lx6U4qHRVq6Tm1bazLq2uxuxavlf3fjkCXvEO3T+xx7pdi9bqOZMIAmeapOsRV8kNT60w== X-Received: by 2002:a5d:6744:: with SMTP id l4mr17644968wrw.186.1566197187059; Sun, 18 Aug 2019 23:46:27 -0700 (PDT) Date: Mon, 19 Aug 2019 07:46:25 +0100 From: Stephane Chazelas To: Bart Schaefer Cc: Zsh hackers list Subject: Re: Matching delimiters for the "e" glob qualifier Message-ID: <20190819064625.6gr2bto2fi7dtt3q@chaz.gmail.com> Mail-Followup-To: Bart Schaefer , Zsh hackers list References: <2c845fb0-d628-400f-a805-ad8356b6d87a@www.fastmail.com> <7EBD1ADA-7179-4EEF-97CA-DBE4371D80D6@icloud.com> <876f807b-dfdd-4246-8cfe-7cf6f373ac88@www.fastmail.com> <20190817063009.7niz4cz2tuqx3ksu@chaz.gmail.com> <20190818185817.55qgvidggem6hamh@chaz.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20171215 2019-08-18 14:55:09 -0500, Bart Schaefer: > On Sun, Aug 18, 2019, 1:59 PM Stephane Chazelas > wrote: > > > Are we guaranteed it will stay that way? > > > > Yes. Thanks. I found that it also works for [...] (which is probably the one I'll settle on for my own use) and the extended glob ones (#, ^, ~, the latter only with #q when using extendedglob), but also "-"! Which harks back to https://www.zsh.org/mla/workers/2019/msg00465.html Which was also asking (among other things) about the special treatment of "-" in $ string=- pattern='\-'; [[ $string = $~pattern ]] && echo yes yes (I had no feedback on that one at the time). Here maybe zsh could extend it to all characters as doing it for only *?[]^~#- and not others (I've not tested all possible ones) seems a bit arbitrary. > $ (echo a(eé'echo é'é)) |& sed -n l > > zsh: unknown file attribute: ^\003$ > > > > You can't use multibyte characters as the delimiter there. [...] Sorry for causing confusion there. UTF-8 é as delimiter is fine there. $ zsh -c 'echo /(eé"echo x"é/)' x / The issue I wanted to raise was the bogus error message when using é as a glob qualifier. It can be reproduced without the "e" qualifier: $ zsh -c 'echo /(é)' |& sed -n l zsh:1: unknown file attribute: ^\003$ -- Stephane