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,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20962 invoked from network); 16 Sep 2022 07:53:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Sep 2022 07:53:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1663314823; b=GbCtT42o87X1GZHmWUzCDqSTTnLLYvveHmsWvZdrTNneQ7kCH+hBf1XKALnAlhzHqLGJwEvfxL jwGhowTUDhd7KpPVMjIuj+eq0OhQ5x0tP+bspE57qpjmJq7bYBv8QrtNZUG5TjCUl8Bjn2YH44 U3IBkfB9lOu7+xgC2Sx0NBVolftsLhqeJGvKL0xNwvmfbxrRM6r4TKkCjC7jsM1B1v+km9IFvv 5n9DpJSgXpNxaNJzZJ9jjic9Xx5qrpQgYS+b2iyO1pY+CyKS4hG7NuzuvZq7WiW0C6rRoSWA0j k518EAMbO9hK8RJxZ+RJuSrQ4QBzaSoBal5uKmXNdHvjFg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pg1-f171.google.com) smtp.remote-ip=209.85.215.171; 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=1663314823; bh=nOIfOGvksyb/SF/1RH2rKg7JIi+nzLTNVBpURIBMOtU=; 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=W/Q4ZxK0M1OH1Pbxa6Kpb9UJGPO76E0frBo0xK/0c2xYcUgqx1E1Ac6OrvEEKxc05axe6RmVY0 dz24D8PqxFGrBThhQWlzLWE3Jnul0v/icDkBkifX6S/k+GodKGXqiJzCfrALUiQ+Zoq/ROAGjm pyIgJxIv95otvRaFemYGATNzLtJAlxDJqu6y9bVsuf27qACml359hDadA922Jmg33/Jbz1HaAX T8F3s0q9LK+yOjACroSTWe8ZJny8iDqwukW3Ee3rvUBJciZjpydjSQk2fhzl68AHu85/Zh4gxo gLPX1lmM1PqioH4E3CmdNppzqTbi4lRbwagl4rpEFz6xCw==; 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=nOIfOGvksyb/SF/1RH2rKg7JIi+nzLTNVBpURIBMOtU=; b=C1esQyE8aUBIJknHZue889BRwl q0UJiFmwMFEFMk8iTYXSIOjPxRxZ4Gcw27TmlPGDXW0GGd3bkRNGIsfD4m1zydnEk9Bl37o+ghhzC 78e7kwc/TEvKv1szVGlxxFqSRlihmMmKeqPYusoLnmB1ZqRgZz6HuGoYdXFhK0jcSHYlY9c0ChDed YqF0RLUqg/xgJPyJF+VfBzGJvy2TxvmxhmYc9YFbZxweL6i12Nvehw6wq9g948LiiQg2ys6szDw1L VnYjAWm4GfSWMx0uaswN8ZjJXpEMirEuYhNPNsNhO6VCyML20N5eUh1Ztx82tfekO8NDb1z3JLLr3 WV2N2NlA==; Received: from authenticated user by zero.zsh.org with local id 1oZ6AQ-0001oP-4d; Fri, 16 Sep 2022 07:53:42 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pg1-f171.google.com) smtp.remote-ip=209.85.215.171; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pg1-f171.google.com ([209.85.215.171]:42823) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oZ69X-000188-1k; Fri, 16 Sep 2022 07:52:47 +0000 Received: by mail-pg1-f171.google.com with SMTP id q63so19615293pga.9; Fri, 16 Sep 2022 00:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=nOIfOGvksyb/SF/1RH2rKg7JIi+nzLTNVBpURIBMOtU=; b=ZVNQkuhjdbylChpb1q3S5QsysaejgPPfpf8idURaxVa1vreNdkESK7atJISWPn8ZEN LwWYJmYS0tOKNKb1MLnvUld/vmnrkI8cT0Uo6Z0hRg3rD3pQwSQKYRGIsDS4Kaz4FiNQ OZ/ih1mTWTEW91SJhSry45wnj6P9BEt+xNMp2GHJf/Bm9woVYbVN0h5vJcemXxh3MowP s8SJ2uFBoJvWuzmS2Vfhf4B+cNu4zpMJbJeE+dvZapAH+JyRCuGyOuaobkHNhFW22OCG h1xgWBcKhj3CnH5y0BqngVYFIsMTBJvNDPGGWkmtetKgUIoHBfcHiqvCSMcowFFG+ZYH V9AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=nOIfOGvksyb/SF/1RH2rKg7JIi+nzLTNVBpURIBMOtU=; b=Sp9JpzEHMMlfppWnOrddmcJFKVxsn+eWdSf/UdFlRQJAyG+30sYuRzyB9uWry+sq1L yu0szhbDKbOmW5SLX+jHf7fr8NLC194vcCn0Go6E/D84YY666CpNN1Q9F2KC2ujr7MYO UUPWAcJ+H+gNQDsif0dc94RYkxMNlFkCXMMhoDfPNSasORpqepPsi5vWUvFYdzn1gHLn UBeiRPthoQDfhLcVHqYJCUVhmb9KdbkroUJE7UIjfUE54TTKmuORPMI5I3nnzy3ROtYn zhyP2BIY13n2BhmfWfFnZyS+xLUzgpfdASlO87ZGfYPG5s9EEdTvQ50Lj+HJC5+dOXxc j6Vw== X-Gm-Message-State: ACrzQf3kC3CScCPcWxUyigYkDbAZsYScKDnGxygGrZ2Ok4Bd5uIGcR7t mbPgz99an3LLTYgpjb2nXB/X/gKdrSW+Ln7vNuE= X-Google-Smtp-Source: AMsMyM5ormrtFabm0TqYs0t2LEzya+3CLixegOEW28zrUTgyHpF5rBQIeaSOSVeRxwaDWEBKKBhn7u7bBl8hMxYHb90= X-Received: by 2002:a65:464a:0:b0:434:883:ea21 with SMTP id k10-20020a65464a000000b004340883ea21mr3579459pgr.152.1663314765289; Fri, 16 Sep 2022 00:52:45 -0700 (PDT) MIME-Version: 1.0 References: <4844b850-2ca6-4c90-95ae-aae00dc339cf@www.fastmail.com> In-Reply-To: From: Michele Venturi Date: Fri, 16 Sep 2022 09:52:33 +0200 Message-ID: Subject: Re: Substitute the last match of a pattern during parameters expansion. To: Roman Perepelitsa Cc: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= , Bart Schaefer , zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000bc230a05e8c6a565" X-Seq: 28091 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: --000000000000bc230a05e8c6a565 Content-Type: text/plain; charset="UTF-8" On Fri, Sep 16, 2022, 08:37 Roman Perepelitsa wrote: On Fri, Sep 16, 2022 at 1:29 AM Michele Venturi wrote: > > > > So what is your suggested solution? > > Depends on the problem. > The problem is extending the (I) flag of parameters expansion in ZSH to the negative numbers as I said. --000000000000bc230a05e8c6a565 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 16, 2022, 08:37 Roman Perepelitsa <roman.perepelitsa@gmail.com> wrot= e:

On Fri, Sep 16, 2022 at 1:29 AM Michele Venturi <dardo82@= gmail.com> wrote:
>
> So what is your suggested solution?

Depends on the problem.

<= /div>
The problem is extending the (I) flag of parameters<= /div>
expansion in ZSH to the negative numbers as I said.<= br>


--000000000000bc230a05e8c6a565--