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,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 bd3bfe99 for ; Wed, 19 Jun 2019 08:06:49 +0000 (UTC) Received: (qmail 12330 invoked by alias); 18 Jun 2019 19:38:23 -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: 44428 Received: (qmail 14006 invoked by uid 1010); 18 Jun 2019 19:38:23 -0000 X-Qmail-Scanner-Diagnostics: from wout4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25482. spamassassin: 3.4.2. Clear:RC:0(64.147.123.20):SA:0(-2.6/5.0):. Processed in 5.540192 secs); 18 Jun 2019 19:38:23 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm3; bh=V5zERZHRlndxtmfULWV4Gssw5U Jwhfqraru1rZd65kA=; b=ePgPzxFErwjkkn8XC49syyD9Wvv+5zUXrS+TRIvu4p EDeSu+EEddInGA38/mCHnpyCkirww8ipdCDXFRhN7s0NmK2SOGrAPpChHLtS0SDe DGJsY/o+38vi49zV1PDZGDLUwe/OHntxm1HvYgadQh3qL6wbQdZ4c6O8fuWcANjL 7oGfu3tkaA4FLqNi66L7Tm2pDHEqQ2HQSZQX2wIc3VEXl8ScUb0WD2JOAwrvREr8 EjltwioWEdJIldOPmIxl+uteHOJXrDUS7Y/91D7xP26VKDrNqbbsxcY+oHQwhmtD mC09Tkj7bWobI8iB2j5C6o3LrL2Aw5ziSduXnkr3M5Kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=V5zERZHRlndxtmfULWV4Gssw5UJwhfqraru1rZd65 kA=; b=edAX88ASXluhlTyLuTqVk/t8Pxdf5D8l92yoo7QUhgi5C2UhXNpdGp6Z8 ORzK+mI3P9FjpgtZBBvMHQxMwx38zffw4JXfC+x1b7vCn/+wwDXKvp5h5sHjEBAW PGTuQrZA58sd2rBgNlYxMDRXhLEtq8ndR6yyXwEsvBzifGj0+0+gbHK0ECVXWCOf VvLx3wJEweK/+vW8Ft/OT7fl8y4TsnjlHlqFOW439eDKlwZ1fn74/CSf62sXSiLy FNzqJjczw26efYm3X9r8mtGJwAE0WOMKZ7c/FNEsAAT+0Tpq/dvdBc4R+oL+p5ie uKiKdDt+icNKj8336gmmDzIz+DJIg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtddtgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdffrghnihgvlhcuufhhrghhrghffdcuoegurdhssegu rghnihgvlhdrshhhrghhrghfrdhnrghmvgeqnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgenucevlhhushhtvghrufhiiigv pedt X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-666-gb2312fa-fmstable-20190614v4 Mime-Version: 1.0 Message-Id: <6f974c69-9c16-4e9f-b0b6-37e40083223a@www.fastmail.com> In-Reply-To: <1560866087.7731.18.camel@samsung.com> References: <1560862806.7731.11.camel@samsung.com> <523ba6f0-651a-444a-8ceb-c7c4ec186b20@www.fastmail.com> <1560866087.7731.18.camel@samsung.com> Date: Tue, 18 Jun 2019 19:37:42 +0000 From: "Daniel Shahaf" To: zsh-workers@zsh.org Subject: Re: PATCH: trailing components Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Peter Stephenson wrote on Tue, 18 Jun 2019 13:55 +00:00: > to be clear, what I was hoping for and lacking was something along the= > lines of: >=20 > echo /blah/blah/blah/**/*.oogabooga() What about . echo /blah/blah/blah/**/*.oogabooga(e.:t 2.) . after defining =C2=ABfunction ":t" { =E2=80=A6 }=C2=BB using one of the = previous snippets? You could even define curried versions, =C2=AB_t2() { :t 2 "$@" }=C2=BB,= for use with the =C2=AB(+_t2)=C2=BB syntax. > even if wasn't quite as short as :t2. =C2=A0I could live = with a > few more characters but a loop or complicated substitution would lead = me > to propose adding the new code instead. I'm not opposed to adding the new code; just brainstorming on alternativ= es. Cheers, Daniel