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.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, 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 e7ca20e9 for ; Mon, 30 Dec 2019 21:45:50 +0000 (UTC) Received: (qmail 1659 invoked by alias); 30 Dec 2019 21:45:45 -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: 45166 Received: (qmail 23897 invoked by uid 1010); 30 Dec 2019 21:45:45 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f66.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.166.66):SA:0(-2.0/5.0):. Processed in 2.367841 secs); 30 Dec 2019 21:45:45 -0000 X-Envelope-From: roman.perepelitsa@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.166.66 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tFNiyMH5rNPL1TB3rXeNDoHdYU0ZGun6wI44MkYOTZU=; b=YITfAu3jrGtjJZoAEtBWq72YfZk+AVAsWyJQjzW7dygdRYfgHgoRnqVrdHqzhMEQFm /moQ14KnWys6CMSUPM3KMLsZmjfqEC8tuOrj3J/kXodPzBlc0cdP5j8a6YI85tuyBfN7 GseaPBe8zNz6OB21lge1cKU5225QqTWz6faOn94VCbHgP711WbY12DtIPUcpYZfU7aEj yop+7/K7hYo5sPMVn2RaHuj+hlrVD20JXRJv9oQhMC/6boRWkMYDAEcf522xZSlw886S ENwvr5pDam66v1P7UiyvfQAyOTX4bu4vK/5KseHtpqFbufgMbsqcz/QL2e1tseeM5oI/ VBjQ== X-Gm-Message-State: APjAAAXLkRX5NAXvVqMFmyo/iyfk6oNCT+wY+Y16edJIQIkF2/HwBXLq 2g2Bl3I6xjAuu9AWxY763yoe/JOmfVuMstAkoIbPG6dY X-Google-Smtp-Source: APXvYqznd61IfWLPpAHFFhti93AKpsOGYdwlpr/MxplTce8D2frh8n0hy0Z8YcLyfpspg2vvsggpElmIlw+3+hiq3oU= X-Received: by 2002:a02:864b:: with SMTP id e69mr53172116jai.83.1577742310924; Mon, 30 Dec 2019 13:45:10 -0800 (PST) MIME-Version: 1.0 References: <20191228210017.2cdgwgpqrssrfhgp@tarpaulin.shahaf.local2> <20191229020534.oqh5ri3nqealx4hj@tarpaulin.shahaf.local2> <20191230180036.u33ixxe5pjjk7lal@tarpaulin.shahaf.local2> <20191230212420.gk2jkimlk3epfdha@tarpaulin.shahaf.local2> In-Reply-To: <20191230212420.gk2jkimlk3epfdha@tarpaulin.shahaf.local2> From: Roman Perepelitsa Date: Mon, 30 Dec 2019 22:44:59 +0100 Message-ID: Subject: Re: ${(S)%%*} doesn't match the empty string (was: Re: [PATCH] zshexpn: Expand documentation of (S) (was: Re: [Bug] S-flag imposes non-greedy match where it shouldn't)) To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Mon, Dec 30, 2019 at 10:25 PM Daniel Shahaf wrote: > > Also, ${str%*} doesn't expand to $str, > > It does for me; see above. I believe Sebastian is correct in that ${str%*} used to chop off the last character from str. It's been fixed at some point. Perhaps ${(S)str%%*} was supposed to get fixed at the same time but somehow eluded it? Roman.